1755 Commits

Author SHA1 Message Date
86b094b1cf Merge pull request #574 from netlify/markdown-editor-improvements
Markdown editor improvements
2017-09-01 15:17:28 -04:00
75023d9f74 close rte heading block on enter keydown 2017-09-01 15:16:51 -04:00
c25a7c4abb debounce markdown editor change handler 2017-09-01 15:16:51 -04:00
4821959951 remove markdown widget serializers 2017-09-01 15:16:51 -04:00
4ffe89a668 Merge pull request #572 from netlify/soft-breaks
add markdown editor soft break support
2017-08-31 21:26:58 -04:00
6ed11a7da7 update markdown parsing tests 2017-08-31 12:06:54 -04:00
e408dcc27e add markdown editor soft break support 2017-08-31 11:03:08 -04:00
e43edf67b9 Merge pull request #567 from netlify/escape-markdown
escape markdown entities entered as literal text
2017-08-30 10:44:43 -04:00
5dfc0f0f24 Number editor return number. (#541)
Adding support for `min`, `max`, `step` on the input element and adding
`valueType` for specifying the return type, so the `NumberControl` can
return actual numbers.
2017-08-29 19:30:05 -07:00
8e805cabd8 escape markdown entities entered as literal text 2017-08-29 17:54:52 -04:00
ac8df98407 Merge pull request #566 from netlify/entry-stop-navigation-on-fail
Do not close entry page if it failed to save or delete.
2017-08-29 14:51:36 -04:00
74662cb4bd Do not close entry if it failed to save or delete. 2017-08-29 12:22:48 -06:00
79c30b9048 Merge pull request #254 from KyleAMathews/cerealize
Migrate rich text editor to Slate backed by Unified
2017-08-25 19:35:11 -04:00
0ea62e0f9d fix rte pasted links with leading/trailing spaces 2017-08-25 16:45:01 -04:00
317a876891 fix html paste for visual editor 2017-08-25 16:36:24 -04:00
9c0b7262ef fix small code issues in RTE implementation 2017-08-25 16:36:22 -04:00
3d83325afc add node type check to avoid errors in rte 2017-08-25 16:35:25 -04:00
2bb67321f9 fix visual editor heading line height 2017-08-25 16:35:24 -04:00
18b98fc1c9 remove superfluous deps, update yarn.lock 2017-08-25 16:35:23 -04:00
d84b156b0a update existing serialization tests 2017-08-25 16:31:09 -04:00
cf2b7be25f refactor and document rte serializers 2017-08-25 16:31:09 -04:00
406ae57d3e add blockquote rte button 2017-08-25 16:31:09 -04:00
9dcda7b0b9 organize serializers 2017-08-25 16:31:09 -04:00
dd51f6365c improve visual editor content styling 2017-08-25 16:31:09 -04:00
1d654662d2 improve shortcode handling in visual editor 2017-08-25 16:31:09 -04:00
ca60a6b8c9 update Slate shortcode handling to include paragraph 2017-08-25 16:31:09 -04:00
9174e56414 refactor remarkToRehypeShortcodes 2017-08-25 16:31:09 -04:00
be7385de29 refactor remark-shortcodes plugin 2017-08-25 16:31:07 -04:00
6377d8c73e initial refactor, some bugfixes 2017-08-25 16:30:39 -04:00
1f961d36cf display images inserted through rte 2017-08-25 16:30:39 -04:00
336cab2592 fix html whitespace truncation 2017-08-25 16:30:39 -04:00
750fbf5e3d re-implement visual editor link button 2017-08-25 16:30:39 -04:00
28ee67c35e eliminate unnecessary editor renders 2017-08-25 16:30:39 -04:00
de1e36108d allow yaml frontmatter parsing 2017-08-25 16:30:39 -04:00
7a744bef84 improve list handling 2017-08-25 16:30:39 -04:00
ae7bd79c7a re-implement visual editor html paste 2017-08-25 16:30:39 -04:00
82d9bdd7ae port history shortcuts from Slate, force focus 2017-08-25 16:30:39 -04:00
4ac63954ca fix focus update on toolbar block click 2017-08-25 16:30:39 -04:00
6443f5d808 allow enter key to make space around void nodes 2017-08-25 16:30:39 -04:00
fbecc887b8 require images to be parsed as shortcodes 2017-08-25 16:30:39 -04:00
dbf14a8f7b re-enable shortcode insertion via toolbar 2017-08-25 16:30:38 -04:00
b7379b019e re-implement shortcode parsing to/from mdast 2017-08-25 16:30:38 -04:00
c95f06138a fix soft break side effects 2017-08-25 16:30:38 -04:00
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
93687d9157 add shortcodes through rte toolbar 2017-08-25 16:28:18 -04:00
469a50afa4 add idempotent markdown/html shortcode handling 2017-08-25 16:28:18 -04:00
63e93d79ca improve rte list handling 2017-08-25 16:28:18 -04:00
31c997897f fix inline code serializing to blocks 2017-08-25 16:28:18 -04:00
0e50210dcf close blocks on backspace 2017-08-25 16:28:18 -04:00
09751efe41 allow raw html in markdown 2017-08-25 16:28:18 -04:00