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

34 Commits

Author SHA1 Message Date
Yifeng Wang
bb7e30c5fb Add history example (#1331)
* add history example

* optimize history example

* optimize layout and comments
2017-10-30 09:59:23 -07:00
Ian Storm Taylor
e815c2752c fix findNativePoint in empty blocks, add error reporting to examples 2017-10-13 18:34:35 -07:00
Ian Storm Taylor
a1d2223e36 add syncing-operations example 2017-10-13 16:24:00 -07:00
Ian Storm Taylor
70a008c178 remove dev examples 2017-10-13 15:48:08 -07:00
Ian Storm Taylor
8fd46bb599 remove iframes example, since it depends on react internals 2017-10-13 15:05:12 -07:00
Ian Storm Taylor
9d5873ec94 remove react-addons-perf 2017-10-13 15:02:19 -07:00
Ian Storm Taylor
e53cee3942 refactor decorations to use selections (#1221)
* refactor decorations to use selections

* update docs

* cleanup

* add Selection.createList

* fix tests

* fix for nested blocks

* fix lint

* actually merge

* revert small change

* add state.decorations, with search example
2017-10-13 12:04:22 -07:00
Ian Storm Taylor
9fca2d3b9b start removing raw serializer (#1098)
* start removing raw serializer

* convert first tests to use jsx

* simplify jsx tests for raw serializer

* allow for options in raw serializer tests

* add more preserve option tests

* convert plain serializer tests

* convert html serialize

* start converting html deserialize

* add hyperscript util

* remove slate-sugar copy-pasted

* finish converting html deserialize

* convert plugins tests

* update rendering tests

* convert schemas tests

* convert core plugin tests

* update hyperscript utl

* refactor changes test directory structure

* fix changes before migration

* add migrated changes test files

* remove <x- prefixes from migration

* get addMark at-current-range tests passing

* get delete at-current-range tests passing

* remove old tests

* convert deleteForward and deleteBackward

* convert insertBlock, insertInline, insertFragment, insertText

* convert removeMark, setBlock, setInline, splitBlock, splitInline

* add unstaged tests

* convert toggleMark, unwrapBlock, unwrapInline, wrapBlock, wrapInline, wrapText

* convert call, setData

* convert on-selection tests

* remove old on-selection tests

* convert history tests

* convert insertFragmentByKey, insertNodeByKey, insertTextByKey, mergeNodeByKey, moveNodeByKey

* convert removeNodeByKey, removeTextByKey, setMarkByKey, setNodeByKey

* convert splitDescendantsByKey, splitNodeByKey, unwrapBlockByKey, unwrapInlineByKey, unwrapNodeByKey, wrapBlockByKey

* fix tests

* port missing at-range tests to at-current-range

* remove at-range tests

* fix raw serializer tests

* fix linter

* fix to prefer toJSON as the canonical method name

* fix todos

* remove internal references to Raw

* add deprecation helper to Text.fromJSON

* convert examples to not use Raw, and not rely on terse

* remove focus-blur example, rename large document example

* refactor Raw serialize to deprecate, not remove, terse

* deprecate defaultBlockType, toRaw, cleanup serializers
2017-09-10 14:56:03 -07:00
Ryan Yurkanin
af84cf2511 adding forced-layout-example (#954) 2017-07-31 18:19:45 -07:00
Ian Storm Taylor
13a99a9b73 refactor examples, upgrade dependencies 2017-05-04 16:48:42 -07:00
Ian Storm Taylor
2743348d65 add markdown example, fix selection handling with decorators 2017-03-30 14:12:56 -04:00
Ian Storm Taylor
30c2b206fb add check list example 2017-03-28 12:55:48 -04:00
Sunny Hirai
189af27ec7 Updated examples to add GitHub and Docs link + some styling. (#531) 2016-12-25 21:18:39 -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
Samy Pessé
8bc8e45087 Add example for a large document 2016-11-03 10:39:40 +01: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
Ian Storm Taylor
55ab4aafd5 update iframe rendering logic, refactor iframes example 2016-08-05 12:40:54 -07:00
Vladimir
9cb361dc29 Lint errors fixes. 2016-08-03 04:03:43 +03:00
Vladimir
5fa616a01d Added example skeleton. IFrame component + basic usage 2016-08-02 11:08:07 +03:00
Ian Storm Taylor
17d676b639 refactor rtl support, add rtl example 2016-07-29 12:05:01 -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
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
94cf5522ca add development performance testing examples 2016-07-18 15:05:51 -07:00
Ian Storm Taylor
c489eee418 add read-only mode, closes #108 #106 2016-07-17 15:57:27 -07:00
Ian Storm Taylor
677ac96f4f update docs 2016-07-12 22:26:57 -07:00
Ian Storm Taylor
7200819709 update docs, few fixes 2016-07-11 12:34:22 -07:00
Ian Storm Taylor
48573e529e add code highlighting example, still slow 2016-07-06 14:05:35 -07:00
Ian Storm Taylor
2f2437476e add paste html example with first stab at html serializer 2016-06-29 10:43:22 -07:00
Ian Storm Taylor
78a902d7a0 add start of image example 2016-06-28 18:26:56 -07:00
Ian Storm Taylor
85361bf749 add hovering menu example 2016-06-28 15:47:29 -07:00
Ian Storm Taylor
2743c3741d refactor examples 2016-06-24 10:22:48 -07:00