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

282 Commits

Author SHA1 Message Date
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
Ian Storm Taylor
54587c3318 add decorator rendering test 2016-07-18 16:18:55 -07:00
Ian Storm Taylor
a9314f58a9 add default should component update (#124)
* add development performance testing examples

* refactor node map methods to be optimized

* fix updateDescendants return value

* remove console logs

* remove extra console log
2016-07-18 15:30:46 -07:00
Ian Storm Taylor
c41046ac17 add onDocumentChange and onSelectionChange properties to editor 2016-07-18 13:30:37 -07:00
Somasundaram Ayyappan
0289edfc29 Rename mark/unmark transforms to addMark/removeMark (#113)
* Rename mark/unmark transforms to addMark/removeMark

* delete gitkeep
2016-07-18 12:00:30 -07:00
Ian Storm Taylor
e6335266eb remove the concept of "unset" selections, normalizing instead, closes #36 2016-07-17 16:50:40 -07:00
Ian Storm Taylor
062b4a6443 fix to not re-resolve plugins on every update, closes #112 2016-07-17 16:21:23 -07:00
Ian Storm Taylor
c489eee418 add read-only mode, closes #108 #106 2016-07-17 15:57:27 -07:00
Ian Storm Taylor
6140386f2e remove array.includes for compatibility, closes #110 2016-07-17 15:47:36 -07:00
Ian Storm Taylor
ca1dfd904d swap html serializer to take rules in options dictionary 2016-07-17 15:40:38 -07:00
Ian Storm Taylor
d995b1ab35 fix a few void block transform and rendering bugs 2016-07-15 12:49:29 -07:00
Ian Storm Taylor
f1a6066ec5 add html serializer tests 2016-07-14 18:40:16 -07:00