writefreely/prose
Darius Kazemi dd88083b2a Prevent dropping of external files onto editor
We now detect whether a file is being dropped by a user (by checking `event.dataTransfer.files.length`) and prevent the remaining drop behavior if this is the case. Otherwise, drop happens like normal (so a user can still drop text into the editor, or even an image that has been uploaded already via normal means and rendered in the editor).
2022-03-03 10:25:47 -08:00
..
.babelrc.js add prosemirror build environment 2020-03-10 15:11:32 -07:00
.prettierrc added prettierrc 2021-01-08 01:41:36 +01:00
Makefile Build ProseMirror library on make ui 2021-03-03 16:39:29 -05:00
markdownParser.js Support blockquotes in Classic editor 2021-04-29 17:07:40 -04:00
markdownSerializer.js Support blockquotes in Classic editor 2021-04-29 17:07:40 -04:00
menu.js working newlines, link shortcut 2021-01-08 00:33:35 +01:00
package-lock.json Fixed Safari regex lookahead / lookbehind issue. 2021-03-03 20:29:23 +01:00
package.json Use WriteFreely ProseMirror packages 2021-03-19 17:00:21 -04:00
prose.html working newlines, link shortcut 2021-01-08 00:33:35 +01:00
prose.js Prevent dropping of external files onto editor 2022-03-03 10:25:47 -08:00
README.md Update ProseMirror install instructions 2021-02-23 16:54:38 -05:00
schema.js Support blockquotes in Classic editor 2021-04-29 17:07:40 -04:00
webpack.config.js Output prose.bundle.js to static/js/ dir, instead of dist/ 2020-09-09 10:47:01 -04:00

Building

  • Run npm install to download dependencies.
  • Run npm run-script build to build a production script in ../static/js/ or run npm run develop to build and watch for changes. You can use prose.html to test your development changes.
  • Manually copy the file prose.bundle.js to static/js/. To be automated