aizatto / draft-js-prototype

Testing out draft-js for any issues, bugs, and difficulties I may encounter

Home Page:https://aizatto.github.io/draft-js-prototype/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Experiment at https://aizatto.github.io/draft-js-prototype/

Mobile Support

Draft.js is moving towards full mobile support, but does not officially support mobile browsers at this point. There are some known issues affecting Android and iOS - see issues tagged 'android' or 'ios' for the current status.

https://draftjs.org/docs/advanced-topics-issues-and-pitfalls.html#mobile-not-yet-supported

Keyboard Shortcuts

https://support.google.com/docs/answer/179738?co=GENIE.Platform%3DDesktop&hl=en

Google Docs:

Mac:

  • Header 1: Command + Option + 1
  • Header 2: Command + Option + 2
  • Header 3: Command + Option + 3
  • Link: Command + K

Issues

draft-js-markdown-plugin@3.0.5 does not work with draft-js@0.11.4

  • Original: draft-js-plugins-editor@3.0.0 and draft-js0.11.4
    • doesn't work
    • draft-jsplugins-editor is typed
    • Issue in draft-js-markdown-plugin/lib/index.js
    • Error:
      • setEditorState is not a function
      • at Object.handleBeforeInput (index.js:410)
  • Test 1: draft-js-plugins-editor@2.1.1 and draft-js0.11.4
    • doesn't work
    • draft-js-plugins-editor isn't typed
    • Issue in draft-js-markdown-plugin/lib/index.js
    • Error:
      • setEditorState is not a function
      • at Object.handleBeforeInput (index.js:410)
  • Test 2: draft-js-plugins-editor@3.0.0 and draft-js0.10.5
    • Issue in draft-js-plugins-editor/lib/Editor/defaultKeyCommands.js
    • Error:
      • Uncaught TypeError: Cannot read property 'setEditorState' of undefined
      • at Object.handleKeyCommand (defaultKeyCommands.js:12)
  • Test 3: draft-js-plugins-editor@2.1.1 and draft-js0.10.5
    • works
    • draft-js-plugins-editor isn't typed

About

Testing out draft-js for any issues, bugs, and difficulties I may encounter

https://aizatto.github.io/draft-js-prototype/


Languages

Language:TypeScript 62.2%Language:CSS 28.3%Language:HTML 9.5%