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

293 Commits

Author SHA1 Message Date
Ian Storm Taylor
3ad03538fd refactor more transforms 2016-08-17 01:41:37 -07:00
Ian Storm Taylor
1d4c6db4d4 refactor more transforms 2016-08-17 01:01:54 -07:00
Ian Storm Taylor
229cfd3e4e normalize more transforms 2016-08-16 23:42:40 -07:00
Ian Storm Taylor
54a46484e3 refactor more transforms 2016-08-16 23:26:25 -07:00
Ian Storm Taylor
650f467126 update setBlockAtRange() transform to use primitives 2016-08-16 23:04:32 -07:00
Ian Storm Taylor
5687573800 update transforms to add operations to transform 2016-08-16 23:02:39 -07:00
Ian Storm Taylor
6af9466c60 refactor for operations 2016-08-16 20:06:02 -07:00
Ian Storm Taylor
9ae245ddab refactor transforms to take transform 2016-08-16 18:21:54 -07:00
Ian Storm Taylor
18d567672c make transforms mutable 2016-08-16 17:50:47 -07:00
Ian Storm Taylor
c297972539 refactor transforms to apply operations immediately 2016-08-16 17:36:17 -07:00
Ian Storm Taylor
4162bb7a2a remove options for now 2016-08-16 12:52:38 -07:00
Ian Storm Taylor
ff1f25585e refactor normalizing function 2016-08-16 12:50:35 -07:00
Ian Storm Taylor
fb29bdbd4e add selection transforms 2016-08-16 12:16:31 -07:00
Ian Storm Taylor
183abf8f7c refactor transforms to be modularized 2016-08-16 12:10:01 -07:00
Ian Storm Taylor
31924c5314 fix delete when end block has inline nodes 2016-08-15 16:21:41 -07:00
Ian Storm Taylor
c0e9504ce6 fix shouldComponentUpdate logic for code highlighing 2016-08-15 14:52:01 -07:00
Ian Storm Taylor
a045d475d3 speed up schema matching 2016-08-15 14:45:36 -07:00
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
ccac6102a5 fixes 2016-08-14 13:21:46 -07:00
Ian Storm Taylor
dbcb9e531f add rendering of decorators from schema 2016-08-13 19:38:59 -07:00
Ian Storm Taylor
cb1d641e43 cleanup, update code highlighting example 2016-08-13 17:18:20 -07:00
Ian Storm Taylor
4f83f54683 refactor mark component normalization 2016-08-13 17:15:27 -07:00
Ian Storm Taylor
722bf0cf83 add rendering of marks from schema 2016-08-13 17:11:22 -07:00
Ian Storm Taylor
eeb97c0611 add rendering of components from schema 2016-08-13 16:48:21 -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
f4b584a00b got first stab at schema working with tests 2016-08-12 15:58:45 -07:00
Ian Storm Taylor
8b5305f239 first stab at adding a schema to core 2016-08-12 11:33:48 -07:00
Ian Storm Taylor
944bbc8a75 add isModAlt 2016-08-11 18:55:12 -07:00
Ian Storm Taylor
7ee58a55e2 fix insertFragment for nested blocks 2016-08-11 14:41:51 -07:00
Ian Storm Taylor
17bfdee659 fix html serializer called with invalid arguments 2016-08-11 12:56:19 -07:00
Ian Storm Taylor
6ab2d963cd fix html serializer for cases without children 2016-08-11 12:28:41 -07:00
Ian Storm Taylor
018390c8ee fix cursor mark preservation logic 2016-08-10 14:58:50 -07:00
Ian Storm Taylor
0886242657 fix text nodes to rerender with changes decorations 2016-08-09 16:17:06 -07:00
Ian Storm Taylor
5d89fab5e9 fix data transfer with empty html strings 2016-08-09 12:45:46 -07:00
Ian Storm Taylor
454bc8020b add full support for file data transfers 2016-08-09 12:25:08 -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
Suwijak Chaipipat
10cfb6e48b Change concat into insertChildrenAfter and insertChildrenBefore (#232)
* Change concat into insertChildrenAfter and insertChildrenBefore

* Update input and out yaml of insert block at range block-end

* Update input and out yaml of insert block at range block-start
2016-08-09 09:10:03 -07:00
Ian Storm Taylor
030beab8cd fix bundled file, add bundled installation guide 2016-08-07 17:25:43 -07:00
Ian Storm Taylor
f17629a42d fix documentation references for "fragments", closes #228 2016-08-07 13:13:06 -07:00
Ian Storm Taylor
55ab4aafd5 update iframe rendering logic, refactor iframes example 2016-08-05 12:40:54 -07:00
Ian Storm Taylor
30453d6821 Merge branch 'add/render-to-iframe' of https://github.com/vleletko/slate into add-iframe 2016-08-05 10:46:40 -07:00
Ian Storm Taylor
3dc930a859 fix <Void> to always get latest state onClick, closes #223 2016-08-05 10:37:56 -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
90abc993b9 fix for insertBlockAtRange in empty blocks, closes #224 2016-08-05 10:25:52 -07:00
Ian Storm Taylor
9a70188f34 loosen default shouldComponentUpdate for nodes, and make Void implicit 2016-08-04 14:12:27 -07:00
Ian Storm Taylor
917906e378 refactor onBeforeChange 2016-08-04 13:18:20 -07:00
Samy Pessé
f25c5d9a64 Add handler "onBeforeChange" (#219)
* Add handler "onReceiveState"

* Change onReceiveChange to onBeforeChange and call it before onChange as well

* Dont'call props.onBeforeChange since it's added to CorePlugin

* Update documentation for onBeforeChange
2016-08-04 13:11:23 -07:00