Shawn Erquhart
d1b25851fd
Merge pull request #629 from netlify/editor-fast-follow
...
editor fast follow
2017-09-29 13:05:27 -04:00
Caleb
cd35289dbc
Upgrade depreciated transitions addon to react-transition-group
.
...
v1 of `react-transition-group` is a drop-in replacement.
2017-09-28 13:27:05 -06:00
Shawn Erquhart
e2232e1067
improve markdown entity escaping perf
2017-09-26 16:35:01 -04:00
Shawn Erquhart
516a5e4c7f
improve markdown editor serialization debounce
2017-09-26 15:52:50 -04:00
Shawn Erquhart
9e0d7696ee
stop remark from decoding HTML entities
2017-09-26 15:27:34 -04:00
Shawn Erquhart
d3c12db8ef
fix soft break support
2017-09-26 14:50:56 -04:00
Shawn Erquhart
7bcb16d5e6
fix nested field updates
2017-09-26 14:50:56 -04:00
Shawn Erquhart
fddbf8f7f0
disable auto-conversion of markdown urls to links
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
e25ec098f6
fix editor parsing of styled inline code
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
e937e8e626
handle markdown styled inline nodes
...
Slate does not allow inline nodes like links and
images to have marks (like strong, emphasis). This
commit changes the parsers to process these nodes
as if they were text nodes so that marks are
handled.
2017-09-26 14:50:56 -04:00
Shawn Erquhart
2d3bf9b3fc
fix verbose markdown entity output
...
Because we convert markdown to an AST, the literal input
cannot be reconstructed, so we have to default to improving
received markdown rather than degrading it. This fix
implements smart MDAST parsing to ensure that adjacent
nodes with the same styling (strong, emphasis, etc) are
grouped together rather than separated (which results in
verbose output).
2017-09-26 14:50:56 -04:00
Shawn Erquhart
91590a2f25
remove pedantic markdown parsing
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
Shawn Erquhart
cd111f3a3d
distinguish between newline and soft break in editor
2017-09-26 14:50:56 -04:00
Darrel O'Pry
1f06885a69
Add code coverage output generation to npm test ( #610 )
2017-09-20 12:23:40 -07:00
Shawn Erquhart
d349c3d3b1
Merge pull request #590 from netlify/update-depreciated-deps
...
Upgrade Depreciated React Dependencies
2017-09-15 16:18:24 -04:00
Caleb
6e356e81da
Update tests for EntryEditorToolbar
2017-09-11 14:25:23 -06:00
Caleb
87f942e73b
Rename hasChanged
to enableSave
for the editor Save button.
2017-09-11 14:08:07 -06: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
Caleb
75aa52a650
Disable Save button when entry has not been changed.
2017-09-02 19:24:37 -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
e43edf67b9
Merge pull request #567 from netlify/escape-markdown
...
escape markdown entities entered as literal text
2017-08-30 10:44:43 -04:00
bruce-one
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
Shawn Erquhart
8e805cabd8
escape markdown entities entered as literal text
2017-08-29 17:54:52 -04:00
Shawn Erquhart
0ea62e0f9d
fix rte pasted links with leading/trailing spaces
2017-08-25 16:45:01 -04:00
Shawn Erquhart
317a876891
fix html paste for visual editor
2017-08-25 16:36:24 -04:00
Shawn Erquhart
9c0b7262ef
fix small code issues in RTE implementation
2017-08-25 16:36:22 -04:00
Shawn Erquhart
3d83325afc
add node type check to avoid errors in rte
2017-08-25 16:35:25 -04:00
Shawn Erquhart
2bb67321f9
fix visual editor heading line height
2017-08-25 16:35:24 -04:00
Shawn Erquhart
18b98fc1c9
remove superfluous deps, update yarn.lock
2017-08-25 16:35:23 -04:00
Shawn Erquhart
d84b156b0a
update existing serialization tests
2017-08-25 16:31:09 -04:00
Shawn Erquhart
cf2b7be25f
refactor and document rte serializers
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
ca60a6b8c9
update Slate shortcode handling to include paragraph
2017-08-25 16:31:09 -04:00
Shawn Erquhart
9174e56414
refactor remarkToRehypeShortcodes
2017-08-25 16:31:09 -04:00
Shawn Erquhart
be7385de29
refactor remark-shortcodes plugin
2017-08-25 16:31:07 -04:00
Shawn Erquhart
6377d8c73e
initial refactor, some bugfixes
2017-08-25 16:30:39 -04:00
Shawn Erquhart
1f961d36cf
display images inserted through rte
2017-08-25 16:30:39 -04:00
Shawn Erquhart
336cab2592
fix html whitespace truncation
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