1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-20 15:14:38 +01:00

158 Commits

Author SHA1 Message Date
Ian Storm Taylor
b0adb9252c cleanup 2017-03-30 12:44:55 -04:00
Ian Storm Taylor
ef81dc856a fix check-lists example 2017-03-30 12:30:33 -04:00
AlbertHilb
f1b147860b Rewrite CheckListItem component. Only the area we really want to be editable (#696)
must lie inside contenteditable elements.
2017-03-30 10:35:01 -04:00
Ian Storm Taylor
6198708086 change selection updating logic to happen at the top-level, closes #662 2017-03-30 00:41:06 -04:00
Ian Storm Taylor
392fd75722 fix getPoint to work around in-editable content 2017-03-29 13:01:16 -04:00
Ian Storm Taylor
30c2b206fb add check list example 2017-03-28 12:55:48 -04:00
Ian Storm Taylor
1511d9f203 fix caching logic for onDocumentChange and onSelectionChange, fixes #614 #553 #538 2017-02-28 15:25:55 -08:00
Ian Storm Taylor
d7962240e1 fix scrolling to selection 2017-02-28 14:51:51 -08:00
Ian Storm Taylor
6a92f9384d add autoFocus support 2017-02-28 09:10:59 -08:00
Ian Storm Taylor
64b1e542b8 refactor the Selection model, deprecating old methods (#631)
* refactor Selection, deprecating old methods

* fix a few more things

* introduce an alternative for moveToOffsets

* add edge methods for move{start/end}OffsetTo

* fix selection return value

* fix deprecation warnings

* refactor transforms to make auto-generating easier

* refactor and deprecate selection transforms

* remove deprecation warnings from tests

* fix deprecation warnings in examples
2017-02-27 12:55:13 -08:00
Ian Storm Taylor
8f92ec6a6d fix linting 2017-02-25 12:55:31 -08:00
Per-Kristian Nordnes
c456c9dbe1 Image example: fix delete bug. Fixes #625 (#628)
As void-nodes now can be deleted, use a schema rule to normalize the document, and insert a paragraph when empty. Delete old "onDocumentChange" handler.
2017-02-25 12:50:52 -08:00
Ian Storm Taylor
c3578d12ad tighten linting rules 2017-02-25 10:13:21 -08:00
Kenneth Truong
8214641e75 Fix case in spellCheck (#592) 2017-02-13 16:30:48 -08:00
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