Nicolas Gaborit
f87e4dc72b
Remove old snapshot
parameter for Transform.apply ( #361 )
2016-10-04 12:19:31 -07:00
Samy Pessé
d1c3700bd2
Fix #234 : fix typing text near inline void nodes ( #339 )
...
* Add base tests for isVoid with around text node
* Ensure that void nodes are surrounded by text nodes in Node.normalize
* Only wrap inline void nodes with text
* Fix indentation
* Add emojis example
* Adapt unit test "transforms/fixtures/at-current-range/set-inline/with-is-void"
* Adapt unit test "transforms/fixtures/at-current-range/insert-inline/with-inline"
* Adapt unit test "transforms/fixtures/at-current-range/insert-inline/block-start"
* add passing parent to leaf nodes, for rendering breaks
* add zero-width spaces in empty text nodes, to allow selections
* add zero-width space handling to copy/cut
* fix delete handling around inline void nodes
* fix tests for inline void nodes
* fix style
* fix void cursor handling across browsers
* fix void rendering tests
2016-09-23 09:46:24 -07:00
Suwijak Chaipipat
8300fad52b
Prevent backspace to move selection into table-cell ( #345 )
2016-09-22 08:57:33 -07:00
Suwijak Chaipipat
b7f317ac4b
Unset selection before remove node ( #316 )
2016-09-14 14:48:21 -07:00
Ian Storm Taylor
cc11861627
fix embed example to not clobber edits, closes #301
2016-09-10 17:59:01 -07:00
Ian Storm Taylor
d49b792e99
fix release script, update code highlighting example
2016-08-15 14:44:44 -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
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
8b5305f239
first stab at adding a schema to core
2016-08-12 11:33:48 -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
454bc8020b
add full support for file data transfers
2016-08-09 12:25:08 -07:00
Ian Storm Taylor
030beab8cd
fix bundled file, add bundled installation guide
2016-08-07 17:25:43 -07:00
Ian Storm Taylor
5a6d3c4534
fix iframes example line breaks
2016-08-05 12:47:29 -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
9a70188f34
loosen default shouldComponentUpdate for nodes, and make Void implicit
2016-08-04 14:12:27 -07:00
Vladimir
9cb361dc29
Lint errors fixes.
2016-08-03 04:03:43 +03:00
Vladimir
95eb2c0bdf
Example how to render slate to IFrame
2016-08-03 03:31:26 +03:00
Ian Storm Taylor
0eea98d4a9
fix link example
2016-08-02 10:33:02 -07:00
Vladimir
5fa616a01d
Added example skeleton. IFrame component + basic usage
2016-08-02 11:08:07 +03:00
Ian Storm Taylor
789c4b3002
fix void leaf selection handling
2016-08-01 18:26:27 -07:00
Ian Storm Taylor
39aaa916ec
fix to only double new lines on last leaf
2016-08-01 15:18:37 -07:00
Ian Storm Taylor
5e9f19db92
remove extra style prop from editor example
2016-08-01 13:48:23 -07:00
Ian Storm Taylor
560b28ce32
add debug points, remove unused deps, fix composition
2016-08-01 13:45:46 -07:00
Ian Storm Taylor
99d1c283f0
add prod and dev examples
2016-07-29 12:44:35 -07:00
Ian Storm Taylor
17d676b639
refactor rtl support, add rtl example
2016-07-29 12:05:01 -07:00
Samy Pessé
845e284ee4
Add RTL support ( #204 )
...
* Add property textAlignment for the whole editor
* textAlignment should be set on Content
* Add basic for directionMap in State
* Add RTL to example
* Use setDocument for updating direction map when inserting blocks
* Remove debug log
* Only add 'dir' to node when is not default value
* Prevent tests from failing because of .DS_Store on OSX
* Add tests for rtl rendering
* Fix rendering tests
* Fix test for rendering "text-direction"
* Remove textAlignment prop on editor
* Don't use a directionMap but directly a "textDir" on nodes
* Remove .setDocument from State
2016-07-29 11:25:07 -07:00
Ian Storm Taylor
c248b3de22
add embeds example, fix to not let events propagate out of voids
2016-07-28 15:38:17 -07:00
Ian Storm Taylor
5e6f5b9cd1
add event handlers to reference
2016-07-27 22:45:25 -07:00
Ian Storm Taylor
1a6c3c153e
fix selection settings in links example
2016-07-27 22:31:39 -07:00
Ian Storm Taylor
1c86b2fcf7
fix deleting sibling inline node
2016-07-27 22:30:37 -07:00
Ian Storm Taylor
d20b8511bb
refactor onKeyDown to use data object
2016-07-27 16:22:11 -07:00
Ian Storm Taylor
3448dac17b
fix to greatly improve performance, and void selections in void nodes
2016-07-26 16:58:42 -07:00
Ian Storm Taylor
b506098a29
add plugins example, fix soft break handling
2016-07-26 12:15:21 -07:00
Ian Storm Taylor
569e940fd1
add node component, cleanup draggable/void interactions
2016-07-25 16:46:17 -07:00
Ian Storm Taylor
d78ddeabad
update examples for terse raw
2016-07-25 14:45:37 -07:00
Ian Storm Taylor
3bd000d118
add draggable nodes, first steps
2016-07-24 18:04:11 -07:00
Ian Storm Taylor
e80799252f
add always ending in paragraph to image example
2016-07-22 21:28:28 -07:00
Ian Storm Taylor
31782cb11a
remove selection state handling from image block in examples
2016-07-22 13:28:38 -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
6993b0c666
change a few examples to omit ranges for cleanliness
2016-07-21 16:41:35 -07:00
Ian Storm Taylor
0ebe5b4b64
add toggleMark and toggleMarkAtRange transforms
2016-07-21 11:59:21 -07:00
Ian Storm Taylor
38eccfb436
switch from makefile to npm scripts, closes #144
2016-07-21 01:59:44 -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
8654dfc929
fix rich text example
2016-07-20 14:59:10 -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