1115 Commits

Author SHA1 Message Date
Shawn Erquhart
dbf14a8f7b re-enable shortcode insertion via toolbar 2017-08-25 16:30:38 -04:00
Shawn Erquhart
b7379b019e re-implement shortcode parsing to/from mdast 2017-08-25 16:30:38 -04:00
Shawn Erquhart
c95f06138a fix soft break side effects 2017-08-25 16:30:38 -04:00
Shawn Erquhart
842c2935e9 use mdast instead of html for rte local model
markdown is currently serialized to html at load time,
which makes it near impossible to support arbitrary html
in the markdown. This also means we're stringifying to
html on every change.

This commit moves to Remark's MDAST for local serialization,
including parsing from MDAST to Slates's Raw AST. It brings
much more control over the editing experience and full
support for processing unescaped HTML.
2017-08-25 16:30:37 -04:00
Shawn Erquhart
93687d9157 add shortcodes through rte toolbar 2017-08-25 16:28:18 -04:00
Shawn Erquhart
469a50afa4 add idempotent markdown/html shortcode handling 2017-08-25 16:28:18 -04:00
Shawn Erquhart
63e93d79ca improve rte list handling 2017-08-25 16:28:18 -04:00
Shawn Erquhart
31c997897f fix inline code serializing to blocks 2017-08-25 16:28:18 -04:00
Shawn Erquhart
0e50210dcf close blocks on backspace 2017-08-25 16:28:18 -04:00
Shawn Erquhart
09751efe41 allow raw html in markdown 2017-08-25 16:28:18 -04:00
Shawn Erquhart
f22d09b781 add smart soft breaks for visual editor 2017-08-25 16:28:18 -04:00
Shawn Erquhart
fe3d04b722 streamline raw editor pasting 2017-08-25 16:28:18 -04:00
Shawn Erquhart
51cd8d30a5 remove prosemirror dependencies 2017-08-25 16:28:18 -04:00
Shawn Erquhart
24caeadfa4 add list and code toolbar buttons 2017-08-25 16:28:17 -04:00
Shawn Erquhart
ae56ef6dda convert raw editor to Slate 2017-08-25 16:28:17 -04:00
Shawn Erquhart
719c105844 remove logic from raw markdown editor 2017-08-25 16:28:17 -04:00
Shawn Erquhart
b08a9fcaa8 improve Dropbox Paper paste handling 2017-08-25 16:28:17 -04:00
Shawn Erquhart
804ef3d4b3 use true source maps 2017-08-25 16:28:17 -04:00
Shawn Erquhart
c49d84b2eb add empty node and Paper emoji unified plugins 2017-08-25 16:28:17 -04:00
Shawn Erquhart
a8fe57e5d6 pre-process visual editor pastes w/ unified 2017-08-25 16:28:17 -04:00
Shawn Erquhart
5a664f8be1 remove prosemirror, reuse unified pipelines 2017-08-25 16:28:17 -04:00
Shawn Erquhart
cba631ba1a improve visual/raw editor consistency 2017-08-25 16:25:30 -04:00
Shawn Erquhart
5cbc76da68 improve rte pasting 2017-08-25 16:24:13 -04:00
Shawn Erquhart
54e77bd80c fix raw editor formatting controls 2017-08-25 16:24:13 -04:00
Shawn Erquhart
faec38ac19 fix raw editor paste parsing 2017-08-25 16:24:13 -04:00
Shawn Erquhart
e0ca24c6d3 add unified config module 2017-08-25 16:24:13 -04:00
Shawn Erquhart
09e631ded7 allow nested widget previews to update 2017-08-25 16:24:13 -04:00
Shawn Erquhart
84ed450ac6 add visual editor serializer source doc 2017-08-25 16:24:13 -04:00
Shawn Erquhart
ffbd8d22cc expose widgetValueSerializer registry 2017-08-25 16:24:13 -04:00
Shawn Erquhart
1c0bb6a877 implement widget data serialization for rte perf 2017-08-25 16:24:13 -04:00
Shawn Erquhart
bc721337de set rte focus after toolbar click 2017-08-25 16:24:13 -04:00
Shawn Erquhart
22a8da11a4 fix rte link serialization 2017-08-25 16:24:13 -04:00
Shawn Erquhart
e682189410 only render editor page controls/previews on change 2017-08-25 16:24:13 -04:00
Shawn Erquhart
e01c077efb fix empty initial state for rte 2017-08-25 16:24:12 -04:00
Shawn Erquhart
9c869be8fa migrate visual editor from prosemirror to slate 2017-08-25 16:24:12 -04:00
Shawn Erquhart
49b3a62823 attempt prosemirror update, troubleshooting 2017-08-25 16:24:12 -04:00
Shawn Erquhart
e7ac3a7671 switch remark options to use gfm, fences 2017-08-25 16:24:12 -04:00
Shawn Erquhart
b293b235bb fix link creation in visual editor 2017-08-25 16:24:12 -04:00
Shawn Erquhart
bd767308cd fix visual editor tests, parse/serialize consistency 2017-08-25 16:24:12 -04:00
Shawn Erquhart
b22323201d handle raw editor html pastes with unified 2017-08-25 16:24:12 -04:00
Shawn Erquhart
b5e0be43f2 split off markdownToProseMirror plugin 2017-08-25 16:24:12 -04:00
Shawn Erquhart
361c3d5284 improve prosemirror parser, fix new doc creation 2017-08-25 16:24:12 -04:00
Shawn Erquhart
8bb18452e8 implement initial unified/remark preview update 2017-08-25 16:24:12 -04:00
Shawn Erquhart
5048c7ca1d convert editor component registry to Map 2017-08-25 16:24:12 -04:00
Shawn Erquhart
adcb215fbd replace remark with unified for docs and extensibility 2017-08-25 16:24:12 -04:00
Shawn Erquhart
514fbb30b8 render plugins on visual editor load 2017-08-25 16:24:12 -04:00
Shawn Erquhart
e401f7ef9b remove unrelated code style improvements 2017-08-25 16:24:12 -04:00
Shawn Erquhart
f93aa34105 fix rebase incongruencies 2017-08-25 16:24:12 -04:00
Kyle Mathews
8763666570 Update parser to support remaining node types + add inline styled text support 2017-08-25 16:24:12 -04:00
Kyle Mathews
0eb109cb73 Convert markdown-prosemirror parser/compiler to Remark 2017-08-25 16:24:12 -04:00