1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-03-08 23:09:47 +01:00

144 Commits

Author SHA1 Message Date
Anuj
44cef94b04 Fixing Readme and API docs (#579)
* Fix typo

just a minor typo in the docs!

* Fix typo in API docs

* Update focus-blur example readme to reflect the correct example

* Remove extra newline

* Correct Readme on the plugins example as well

* Correct readme for RTL example

* Fix own typo.

* Adding a Readme for the tables example
2017-02-03 08:21:32 -08:00
Sunny Hirai
189af27ec7 Updated examples to add GitHub and Docs link + some styling. (#531) 2016-12-25 21:18:39 -08:00
Sunny Hirai
dbef33a58f Reloading the page now also reloads the CSS. (#532) 2016-12-25 21:18:16 -08:00
Sunny Hirai
d56c0d8d95 Improve examples so that code changes propagate to browser (#527)
* Updated examples/dev.html so that the script would reload on a page refresh

* Made watch:examples verbose so we know when watchify has finished its work.
2016-12-16 18:19:48 -08:00
Ian Storm Taylor
0c12e95b21 fix dom selection normalizing for void nodes 2016-12-02 17:01:08 -08:00
Ian Storm Taylor
9d512580b7 add support for isShift on paste 2016-12-01 17:32:07 -08:00
Ian Storm Taylor
0dd3dee160 more emoji 2016-11-28 17:28:01 -08:00
Ian Storm Taylor
d99f9b6d78 update large document example 2016-11-23 09:05:15 -08:00
Ian Storm Taylor
d281140619 remove isRendering flag lock, closes #383 2016-11-18 13:33:12 -08:00
Ian Storm Taylor
6f67ac70c9 fix linting 2016-11-17 18:10:30 -08:00
Ian Storm Taylor
508d2b15b7 fix deprecate node access without key 2016-11-17 12:34:10 -08:00
Soreine
ade3c324bd Merge branch 'master' into schema-normalize 2016-11-17 10:27:47 +01:00
Ian Storm Taylor
3aff3cbf91 add focus-blur example 2016-11-16 17:25:27 -08:00
Soreine
944adc27fe Remove needless transform = transform.method() 2016-11-10 15:18:52 +01:00
Soreine
a319499f7c Enforce 2-spaces indentation 2016-11-10 11:04:49 +01:00
Samy Pessé
8bc8e45087 Add example for a large document 2016-11-03 10:39:40 +01:00
Soreine
ce0a5579e7 Remove a most of unused vars 2016-10-25 13:12:10 +02:00
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