Commit Graph

26 Commits

Author SHA1 Message Date
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
Matt Baer de5e91cb71 Fix trailing backslash on lists in Classic editor
Previously, when editing a post with an unordered list in it via the
Classic editor, backslashes (\) would get added to the end of each list
item. This fixes that.

Closes #480
2021-06-29 13:07:10 -04:00
Matt Baer 5a4ff2a9de Support blockquotes in Classic editor
Ref T727
2021-04-29 17:07:40 -04:00
Matt Baer c01fb585ba Support horizontal rules in Classic editor
Ref T727
2021-04-29 17:05:18 -04:00
Matt Baer d7c9f56b40 Rename ProseMirror writeAs Parser/Serializer to writeFreely 2021-03-25 13:02:57 -04:00
Matt Baer 47aa436caa Render `tight` Markdown lists in WYSIWYG editor 2021-03-25 13:02:57 -04:00
Matt Baer 9aa5fc4420 Fix ProseMirror failing to parse Markdown images 2021-03-19 17:02:00 -04:00
Matt Baer 636c9b35c0 Use WriteFreely ProseMirror packages 2021-03-19 17:00:21 -04:00
Matt Baer 706ae9cc77 Style Read More section in WYSIWYG like link 2021-03-03 17:04:16 -05:00
Matt Baer 8a8288d2af Build ProseMirror library on `make ui` 2021-03-03 16:39:29 -05:00
Matt Baer e36e39cb73 Fix WYSIWYG editor script in Chrome <85
This uses String.replace() instead of String.replaceAll().
2021-03-03 16:38:49 -05:00
v 19beabe2d1 Fixed Safari regex lookahead / lookbehind issue. 2021-03-03 20:29:23 +01:00
Matt Baer 65caaca659 Update ProseMirror install instructions 2021-02-23 16:54:38 -05:00
Viktor Vaczi 8c0978419f using a branch from github with the markdown hashtag serializing fix 2021-02-13 13:27:15 +01:00
Viktor Vaczi 6049213661 added prettierrc 2021-01-08 01:41:36 +01:00
Viktor Vaczi 9a55d38e4b working newlines, link shortcut 2021-01-08 00:33:35 +01:00
Viktor Vaczi 676b673c94 Correct line ends 2021-01-05 15:06:19 +01:00
Viktor Vaczi b1cea637cb Removed unnecessary schema nodes, custom markdown parser/serializer, publish keyboard shortcut, readmore node 2021-01-04 17:19:24 +01:00
Matt Baer a96d4474ef Add auto-save to WYSIWYG editor 2020-09-09 17:46:47 -04:00
Matt Baer a7190795f7 Output prose.bundle.js to static/js/ dir, instead of dist/ 2020-09-09 10:47:01 -04:00
Matt Baer 70dbfcfba4 Fix webpack build issues
This upgrades @babel/preset-env to 7.9.0 from 7.8.7.

See: https://github.com/nodejs/node/issues/32852#issuecomment-613655150
2020-09-09 10:45:04 -04:00
Matt Baer da8c08668f Fix whitespace in prose.js 2020-09-09 10:02:00 -04:00
Rob Loranger b3a541ab09
markdown preserved between edit/load/save 2020-03-11 07:59:22 -07:00
Rob Loranger ee712bbfaa
WIP: implement WYSIWYG editor w/ prosemirror 2020-03-11 07:18:03 -07:00
Rob Loranger cb1553d67e
add basic prosemirror instructions 2020-03-10 15:17:40 -07:00
Rob Loranger f1f5dbb128
add prosemirror build environment 2020-03-10 15:11:32 -07:00