1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-24 17:23:07 +01:00

293 Commits

Author SHA1 Message Date
Ian Storm Taylor
cdebdb1400 fix undo rendering and leaf rendering logic 2016-07-25 18:42:31 -07:00
Ian Storm Taylor
e088366364 cleanup editor and content props 2016-07-25 17:04:10 -07:00
Tyler Johnson
ca837e2426 moved onSelect event handling to core plugin (#175) 2016-07-25 16:59:12 -07:00
Ian Storm Taylor
569e940fd1 add node component, cleanup draggable/void interactions 2016-07-25 16:46:17 -07:00
Ian Storm Taylor
c3cc301b5d remove unnecessary method from base 64 serializer 2016-07-25 14:46:10 -07:00
Ian Storm Taylor
98c78e4d96 refactor raw serializer to not be terse by default 2016-07-25 13:29:29 -07:00
Ian Storm Taylor
81c956228b more work on draggable nodes 2016-07-24 18:57:09 -07:00
Ian Storm Taylor
3bd000d118 add draggable nodes, first steps 2016-07-24 18:04:11 -07:00
Ian Storm Taylor
466f377ffa fixes for style and consistency 2016-07-24 17:59:26 -07:00
Mathieu Dutour
8407023e5f add setNodeByKey transform (#157)
* modifyNode transform

* create DOCUMENT_NODE_TRANSFORMS and use assertDescendant to get the node directly

* rename to setNodeByKey
2016-07-24 17:53:28 -07:00
Ian Storm Taylor
b65e218b25 add ability to drag/drop across slate instances 2016-07-22 21:16:42 -07:00
Ian Storm Taylor
2a58f71c42 add support for spellcheck 2016-07-22 20:21:50 -07:00
Ian Storm Taylor
42f4aa629c fix to prevent being able to drag text into a void 2016-07-22 17:04:16 -07:00
Ian Storm Taylor
2df1fe7e6b refactor core onPaste handler 2016-07-22 17:00:04 -07:00
Ian Storm Taylor
ebb1625e29 add drag and drop support 2016-07-22 16:58:24 -07:00
Ian Storm Taylor
384af9ea3a refactor for coding style 2016-07-22 14:16:17 -07:00
Mathieu Dutour
f19f39a8b3 fix performance issue in Leaf (#158) 2016-07-22 14:15:12 -07:00
Ian Storm Taylor
9fc49f9ea5 fix base64 encoding to handle non utf8 characters 2016-07-22 14:12:31 -07:00
Ian Storm Taylor
1784f25caa fix styles for void, fix tests for void rendering 2016-07-22 13:39:02 -07:00
Ian Storm Taylor
03393dabfb change void blocks to not be added automatically, and to handle focus 2016-07-22 13:24:22 -07:00
Ian Storm Taylor
b2f7349432 fix core onBeforeInput logic to re-render only when necessary 2016-07-22 13:02:57 -07:00
Ian Storm Taylor
52e6de488b fix to remove need for core plugin to define a default renderMark 2016-07-22 12:39:00 -07:00
Ian Storm Taylor
3c2b1b730b fix to not re-render when new selection is inside text nodes 2016-07-22 12:37:37 -07:00
Ian Storm Taylor
e8fdacd340 fix to account for renderDecorations being undefined 2016-07-22 12:37:21 -07:00
Ian Storm Taylor
3bc0664852 refactor text model to memoize decorations 2016-07-22 12:36:36 -07:00
Ian Storm Taylor
06c7e885f8 add data-key attribute to Text component 2016-07-22 12:15:33 -07:00
Ian Storm Taylor
950617cd6c move groupByMarks util into Text model as methods 2016-07-22 12:12:23 -07:00
Ian Storm Taylor
ac59e94a15 fix to use index instead of start and end in offset keys 2016-07-22 12:03:55 -07:00
Ian Storm Taylor
57b5c9a8bd add ability to omit ranges in raw json, closes #152 2016-07-21 16:37:42 -07:00
Ian Storm Taylor
986e49aaac add splitBlock and splitInline transforms tests 2016-07-21 15:35:29 -07:00
Ian Storm Taylor
0ebe5b4b64 add toggleMark and toggleMarkAtRange transforms 2016-07-21 11:59:21 -07:00
Ian Storm Taylor
cac82ac65b fix for firefox erroring on copy/cut, closes #142 2016-07-21 10:53:52 -07:00
Ian Storm Taylor
3145a6b085 fix to not update placeholder before one exists 2016-07-21 10:27:42 -07:00
Ian Storm Taylor
a33a4ace5b fix placeholder to reposition on window resize, closes #132 2016-07-21 10:14:59 -07:00
Ian Storm Taylor
1a3ef3854b add helpful error to findDOMNode util, closes #147 2016-07-21 10:07:25 -07:00
Ian Storm Taylor
99146bc536 fix early ending of composition mode 2016-07-21 09:34:46 -07:00
Ian Storm Taylor
99bb4a330a add memoization and performance improvements to selections 2016-07-21 00:54:00 -07:00
Ian Storm Taylor
f1b961fc35 add memoization and clean up node methods (#141)
* cleanup node methods

* add first stab at memoization of node methods

* rename getTextNodes() to getTexts() for consistency
2016-07-20 21:36:52 -07:00
Ian Storm Taylor
fc950b7ca4 fix <Content> to have looser shouldComponentUpdate 2016-07-20 15:20:48 -07:00
Ian Storm Taylor
d0c8ce0c08 add the ability to render based on multiple marks (#138)
closes #33
2016-07-20 15:11:13 -07:00
Ian Storm Taylor
a0cd5364c1 fix webkit modify styles for read-only mode, closes #137 2016-07-20 14:46:44 -07:00
Ian Storm Taylor
9499b9188b change unwrapBlock to operate only on the siblings in a range 2016-07-20 14:13:29 -07:00
Ian Storm Taylor
a9272f7274 add serialization to html serializer 2016-07-20 09:22:55 -07:00
Ian Storm Taylor
1e433b36ae fix arrow key breaking bug 2016-07-19 11:32:48 -07:00
Ian Storm Taylor
0a4bb4379d fix to hide the formatting menu in ios 2016-07-19 11:27:34 -07:00
Ian Storm Taylor
7ad10538e4 fix arrow keys during composing, fix composing in empty blocks 2016-07-19 11:09:17 -07:00
Ian Storm Taylor
11dd17696f fix arrow keys during composition 2016-07-19 10:13:48 -07:00
Ian Storm Taylor
f7905d754f fix backwards selection logic, closes #125 2016-07-19 09:37:09 -07:00
Ian Storm Taylor
f2841a689d add basic composition support 2016-07-18 18:36:38 -07:00
Ian Storm Taylor
a50ec42d67 fix to not create snapshot history for selection changes, closes #94 2016-07-18 16:52:11 -07:00