pjsier
2a4af64a71
Turn off style toggle on Enter
2017-11-07 14:09:56 -05:00
Caleb
14e29e9779
Use Lists for menu items, instead of maps or sequences.
...
Maps are actually invalid, and lists make more sense than sequences.
2017-10-20 09:57:24 -04:00
Benaiah Mischenko
7dd8ca13c4
Migrate to plain CSS (remove CSS modules) ( #659 )
...
* Migrate to plain CSS (remove CSS modules)
Change `prefixer` to a function instead of a proxy
* Switch prefix to `nc`
* Replace prefixer with literal class names
* Remove prefixer
* Fix migration errors
* fix compose migrations
* Remove unnecessary theme imports
* Remove old CSS import
* fix sticky toolbar positioning
* update to cssnano v4 so preset is used
* fix css pseudo selectors
* update lockfile
2017-10-18 12:29:38 -04:00
Shawn Erquhart
c132df9f18
force focus back to editor after undo/redo
2017-10-05 10:24:15 -07:00
Shawn Erquhart
1cf7b74eb9
fix visual editor block closing
2017-10-05 10:24:15 -07:00
Shawn Erquhart
852b6f397c
ensure against trailing shortcodes in visual editor
2017-10-05 10:24:15 -07:00
Shawn Erquhart
d8a7608a25
fix bugs due to Slate "nodes" properties being boolean
2017-10-05 10:24:15 -07:00
Shawn Erquhart
a89427dd8b
add editor rule to ensure plain text in code blocks
2017-10-05 10:24:15 -07:00
Shawn Erquhart
70e8eae599
migrate Text.createFromString to Text.create
2017-10-04 15:48:33 -04:00
Shawn Erquhart
39f65476c3
migrate insertBlock empty block replacement
2017-10-04 15:48:33 -04:00
Shawn Erquhart
cd0254407e
migrate Block.create to specify children
2017-10-04 15:48:33 -04:00
Shawn Erquhart
a5c1bb2bff
migrate to new slate packages
2017-10-04 15:48:33 -04:00
Shawn Erquhart
a5b053e1c3
remove deprecated terse serialization option
2017-10-04 15:48:32 -04:00
Shawn Erquhart
bbf165d3b0
migrate text nodes to use ranges
2017-10-04 15:48:32 -04:00
Shawn Erquhart
7a219bb833
migrate from Raw serializer to fromJSON/toJSON
2017-10-04 15:48:32 -04:00
Shawn Erquhart
155a0f972e
migrate from onDocumentChange to onChange
2017-10-04 15:48:32 -04:00
Shawn Erquhart
2448ed918a
remove undo/redo override, fixed in 0.22
2017-10-04 15:48:32 -04:00
Shawn Erquhart
af2eb78e2b
migrate from transform API to change API
2017-10-04 15:48:32 -04:00
Shawn Erquhart
516a5e4c7f
improve markdown editor serialization debounce
2017-09-26 15:52:50 -04:00
Shawn Erquhart
d3c12db8ef
fix soft break support
2017-09-26 14:50:56 -04:00
Shawn Erquhart
30a762cec1
improve markdown entity escaping for visual editor
2017-09-26 14:50:56 -04:00
Shawn Erquhart
70a4a51b97
add inline image support for editor
2017-09-26 14:50:56 -04:00
Shawn Erquhart
e54dee4220
allow links to be wrapped in marks
2017-09-26 14:50:56 -04:00
Caleb
654f844b86
Upgrade to seperate React prop-types
library.
...
`propTypes` was seperated/depreciated from React as of 15.5.0:
https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes
2017-09-09 20:16:19 -06:00
Shawn Erquhart
75023d9f74
close rte heading block on enter keydown
2017-09-01 15:16:51 -04:00
Shawn Erquhart
c25a7c4abb
debounce markdown editor change handler
2017-09-01 15:16:51 -04:00
Shawn Erquhart
4821959951
remove markdown widget serializers
2017-09-01 15:16:51 -04:00
Shawn Erquhart
6ed11a7da7
update markdown parsing tests
2017-08-31 12:06:54 -04:00
Shawn Erquhart
e408dcc27e
add markdown editor soft break support
2017-08-31 11:03:08 -04:00
Shawn Erquhart
2bb67321f9
fix visual editor heading line height
2017-08-25 16:35:24 -04:00
Shawn Erquhart
d84b156b0a
update existing serialization tests
2017-08-25 16:31:09 -04:00
Shawn Erquhart
406ae57d3e
add blockquote rte button
2017-08-25 16:31:09 -04:00
Shawn Erquhart
9dcda7b0b9
organize serializers
2017-08-25 16:31:09 -04:00
Shawn Erquhart
dd51f6365c
improve visual editor content styling
2017-08-25 16:31:09 -04:00
Shawn Erquhart
1d654662d2
improve shortcode handling in visual editor
2017-08-25 16:31:09 -04:00
Shawn Erquhart
6377d8c73e
initial refactor, some bugfixes
2017-08-25 16:30:39 -04:00
Shawn Erquhart
750fbf5e3d
re-implement visual editor link button
2017-08-25 16:30:39 -04:00
Shawn Erquhart
28ee67c35e
eliminate unnecessary editor renders
2017-08-25 16:30:39 -04:00
Shawn Erquhart
7a744bef84
improve list handling
2017-08-25 16:30:39 -04:00
Shawn Erquhart
ae7bd79c7a
re-implement visual editor html paste
2017-08-25 16:30:39 -04:00
Shawn Erquhart
82d9bdd7ae
port history shortcuts from Slate, force focus
2017-08-25 16:30:39 -04:00
Shawn Erquhart
4ac63954ca
fix focus update on toolbar block click
2017-08-25 16:30:39 -04:00
Shawn Erquhart
6443f5d808
allow enter key to make space around void nodes
2017-08-25 16:30:39 -04:00
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
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