Ian Storm Taylor
dbcb9e531f
add rendering of decorators from schema
2016-08-13 19:38:59 -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
944bbc8a75
add isModAlt
2016-08-11 18:55:12 -07:00
Ian Storm Taylor
454bc8020b
add full support for file data transfers
2016-08-09 12:25:08 -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
186f1a7c6d
Core component will deduce the context from the dispatched event.target element
2016-08-03 03:27:33 +03:00
Ian Storm Taylor
4e6ca3953b
fix onBeforeInput decorations logic, fix initial onSelect logic
2016-08-01 18:09:30 -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
560b28ce32
add debug points, remove unused deps, fix composition
2016-08-01 13:45:46 -07:00
Ian Storm Taylor
27df42bde0
remove console log
2016-08-01 12:44:06 -07:00
Ian Storm Taylor
40598d7198
fix isNative incorrectly being checked
2016-08-01 12:40:09 -07:00
Ian Storm Taylor
5593d501e1
fix shouldComponentUpdate check on content
2016-08-01 12:30:30 -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
acccb8f17c
remove need for selection to be natively rendered
2016-07-28 16:04:41 -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
Tyler Johnson
dca2efca0f
fix isBackward in onSelect event selection ( #195 )
2016-07-28 11:09:47 -07:00
Ian Storm Taylor
9bc410c582
add missing prop types to content
2016-07-27 16:22:12 -07:00
Ian Storm Taylor
c85671aba4
add fragment handling to core onPaste
2016-07-27 16:22:12 -07:00
Ian Storm Taylor
d20b8511bb
refactor onKeyDown to use data object
2016-07-27 16:22:11 -07:00
Ian Storm Taylor
fba3fe7a13
move onCopy and onCut logic to core plugin, refactor onDrop
2016-07-27 16:22:11 -07:00
Ian Storm Taylor
6503ee2d80
change onBeforeInput to take data property
2016-07-27 16:22:11 -07:00
Ian Storm Taylor
ca9aaa9efb
refactor to move onBlur to core plugin
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
20ba3f6cac
fix content shouldComponentUpdate logic
2016-07-26 11:30: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
3bd000d118
add draggable nodes, first steps
2016-07-24 18:04:11 -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
ebb1625e29
add drag and drop support
2016-07-22 16:58:24 -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
03393dabfb
change void blocks to not be added automatically, and to handle focus
2016-07-22 13:24:22 -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
ac59e94a15
fix to use index instead of start and end in offset keys
2016-07-22 12:03:55 -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
99146bc536
fix early ending of composition mode
2016-07-21 09:34:46 -07:00
Ian Storm Taylor
fc950b7ca4
fix <Content> to have looser shouldComponentUpdate
2016-07-20 15:20:48 -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
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
f2841a689d
add basic composition support
2016-07-18 18:36:38 -07:00