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

86 Commits

Author SHA1 Message Date
Ian Storm Taylor
e3e9afba43 update walkthroughs and history 2016-08-14 18:25:12 -07:00
Ian Storm Taylor
5091587814 simplify schema rules, update docs 2016-08-14 15:51:07 -07:00
Ian Storm Taylor
1008a2fb14 more fixes, before adding components 2016-08-13 16:29:15 -07:00
Ian Storm Taylor
8692d1a98a working on moving components into the schema 2016-08-13 16:18:07 -07:00
Ian Storm Taylor
90d4eced95 add wrapTextAtRange tests, cleanup wrapText style and backwards handling 2016-08-09 09:32:46 -07:00
Samy Pessé
17f703cecb WIP: Add transform wrapText (#227)
* Add basic implementation of wrapText

* Default suffix for wrapText to prefix

* Add more tests for afterText

* Add tests "whole-block" and "empty-block" for wrapText

* Add tests for across-blocks and across-inlines

* Preserve selection on wrapText

* Remove comment about cursor position

* Document transformation "wratTextAtRange"
2016-08-09 09:11:21 -07:00
Ian Storm Taylor
f17629a42d fix documentation references for "fragments", closes #228 2016-08-07 13:13:06 -07:00
Ian Storm Taylor
772aadb70a fix insertText to do nothing in void nodes 2016-08-05 10:32:00 -07:00
Ian Storm Taylor
9521b1abf6 fix selection handling for insertFragment and wrapInline 2016-08-01 19:23:21 -07:00
Ian Storm Taylor
c4e1e475eb add insertInline with tests 2016-08-01 18:53:05 -07:00
Ian Storm Taylor
6c61e2772d update state wrap method arguments 2016-07-28 16:27:07 -07:00
Ian Storm Taylor
5f73c63208 fix selection setting in wrapInline transform 2016-07-28 12:32:33 -07:00
Ian Storm Taylor
c1f4bce3b8 change hasUndo and hasRedo to hasUndos and hasRedos 2016-07-28 11:13:12 -07:00
Samy Pessé
b2c1b844af Add properties hasUndo and hasRedo to State (#193)
* Add properties hasUndo and hasRedo to State

* Fix description fo hadRedo
2016-07-28 11:11:42 -07:00
Ian Storm Taylor
1c86b2fcf7 fix deleting sibling inline node 2016-07-27 22:30:37 -07:00
Ian Storm Taylor
fc8fb18fda fix deleting sibling text node 2016-07-27 17:09:10 -07:00
Ian Storm Taylor
3bd000d118 add draggable nodes, first steps 2016-07-24 18:04:11 -07:00
Ian Storm Taylor
2a58f71c42 add support for spellcheck 2016-07-22 20:21:50 -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
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
a9272f7274 add serialization to html serializer 2016-07-20 09:22:55 -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
d995b1ab35 fix a few void block transform and rendering bugs 2016-07-15 12:49:29 -07:00
Ian Storm Taylor
7e5642d848 add ability to turn off collapsed cursor marks, closes #88 2016-07-14 14:34:04 -07:00
Ian Storm Taylor
d324165978 adds ability to delete in word or line increments, fixes #80 2016-07-14 13:20:27 -07:00
Ian Storm Taylor
21cde81ee7 typo 2016-07-14 09:27:41 -07:00
Ian Storm Taylor
87ea0887bf add support for collapsed cursor marks, fixes #82 2016-07-14 09:22:41 -07:00
Ian Storm Taylor
2aa8239448 fix wrapInline selecting, add rendering tests 2016-07-13 18:56:03 -07:00
Ian Storm Taylor
f960bf588c more docs 2016-07-12 21:08:40 -07:00
Ian Storm Taylor
7aa475d74d fix state.moveTo transform 2016-07-12 12:24:13 -07:00
Ian Storm Taylor
9b3bcd837d fix firefox support 2016-07-07 19:37:34 -07:00
Ian Storm Taylor
226b6592dc add linting 2016-07-06 20:19:19 -07:00
Ian Storm Taylor
48573e529e add code highlighting example, still slow 2016-07-06 14:05:35 -07:00
Ian Storm Taylor
a8f26df61b fix deleting for void nodes; 2016-06-30 18:42:10 -07:00
Ian Storm Taylor
c98845e3a0 fix arrow key behavior on void nodes 2016-06-30 14:37:29 -07:00
Ian Storm Taylor
1069fee13a add isVoid property to nodes 2016-06-30 11:13:56 -07:00
Ian Storm Taylor
78a902d7a0 add start of image example 2016-06-28 18:26:56 -07:00
Ian Storm Taylor
85361bf749 add hovering menu example 2016-06-28 15:47:29 -07:00
Ian Storm Taylor
cb2dda5bf4 fix insert fragment logic; 2016-06-27 15:15:11 -07:00
Ian Storm Taylor
9fd4e0af86 cleanup 2016-06-27 14:23:40 -07:00
Ian Storm Taylor
f6c1e8de28 fix fragment pasting 2016-06-27 14:08:30 -07:00
Ian Storm Taylor
0caa49fb10 got pasting fragments working 2016-06-24 18:35:54 -07:00
Ian Storm Taylor
d9a33657a8 got insert fragment working 2016-06-24 18:01:34 -07:00
Ian Storm Taylor
0af3dbcc79 finish draft of insert fragment 2016-06-24 17:22:08 -07:00
Ian Storm Taylor
ef21157dea add insert fragment, remove normalize ranges 2016-06-24 16:02:59 -07:00
Ian Storm Taylor
ce1adf1b36 fix basic copy pate 2016-06-24 14:07:11 -07:00
Ian Storm Taylor
9d62948b1a update link example 2016-06-23 23:39:08 -07:00
Ian Storm Taylor
1c45670ff8 adding selections to transforms 2016-06-23 15:39:44 -07:00