Samy Pessé
0ceefea2e7
Add prop "isFocused" / "isSelected" for custom nodes ( #1950 )
...
* Change the definition of isSelected and add isFocused
* Document prop "isFocused"
* Add unit tests for isFocused / isSelected
* Adapt examples
* Lint
2018-07-03 16:07:38 -07:00
Ian Storm Taylor
d29fc26edf
Publish
...
- slate-base64-serializer@0.2.36
- slate-html-serializer@0.6.8
- slate-hyperscript@0.5.17
- slate-plain-serializer@0.5.17
- slate-prop-types@0.4.34
- slate-react@0.12.11
- slate-schema-violations@0.1.15
- slate-simulator@0.4.34
- slate@0.34.2
2018-06-22 08:56:51 -07:00
Quentin Gérôme
ec51444df1
fix(Safari): Set a text value in dataTransfer to have the cursor on Safari when dragging a text node ( #1927 )
2018-06-22 08:52:02 -07:00
Quentin Gérôme
d8d0b5ff3c
fix(DragAndDrop): isDraggingInternally should not be reset by the onDragOver handler ( #1929 )
...
Fixes #1871
2018-06-22 08:50:51 -07:00
Jinxuan Zhu
0322f7a1b8
Fix a linter bug in a semi-colon case ( #1928 )
2018-06-22 08:48:36 -07:00
Jinxuan Zhu
e4ff1972d7
Ensure multi-line expressions are padded by eslint ( #1924 )
...
* Fix eslint rule and upgrade eslint
* Fix for switch case
* Linting files
2018-06-21 19:27:10 -07:00
Ian Storm Taylor
1cc486e28c
Publish
...
- slate-base64-serializer@0.2.35
- slate-html-serializer@0.6.7
- slate-hyperscript@0.5.16
- slate-plain-serializer@0.5.16
- slate-prop-types@0.4.33
- slate-react@0.12.10
- slate-schema-violations@0.1.14
- slate-simulator@0.4.33
- slate@0.34.1
2018-06-19 19:36:03 -07:00
Ian Storm Taylor
d884be872d
Publish
...
- slate-base64-serializer@0.2.34
- slate-html-serializer@0.6.6
- slate-hyperscript@0.5.15
- slate-plain-serializer@0.5.15
- slate-prop-types@0.4.32
- slate-react@0.12.9
- slate-schema-violations@0.1.13
- slate-simulator@0.4.32
- slate@0.34.0
2018-06-14 19:55:55 -07:00
Ian Storm Taylor
63eae6b48b
Publish
...
- slate-base64-serializer@0.2.33
- slate-html-serializer@0.6.5
- slate-hyperscript@0.5.14
- slate-plain-serializer@0.5.14
- slate-prop-types@0.4.31
- slate-react@0.12.8
- slate-schema-violations@0.1.12
- slate-simulator@0.4.31
- slate@0.33.8
2018-06-14 19:22:05 -07:00
David Chang
5eb04f3650
[slate-react] Pass renderEditor prop through into editor plugin ( #1899 )
2018-06-14 18:17:44 -07:00
DylanPaulusSEL
9660c4bdaa
Fix issue with pasting in IE11 ( #1901 )
...
* Fix issue with pasting in IE11
Fixing the issue where dataTransfer or clipboardData are not populated,
in IE 11 under event.NativeEvent. Instead, if we are using IE11, use
the base event object instead which contains a valid dataTrasnfer/clipboardData object.
* Run prettier on code changes
2018-06-14 18:15:09 -07:00
Jinxuan Zhu
5aa993e81d
Allow user to use immutable 4.0.0-rc without yarn warning ( #1869 )
...
* Allow user to use immutable 4.0.0-rc without yarn warning
* Fix versions
* Fix immutable version to most recent
* Fix versions for react
2018-06-14 18:08:45 -07:00
Ian Storm Taylor
b13affefd6
Publish
...
- slate-base64-serializer@0.2.32
- slate-html-serializer@0.6.4
- slate-hyperscript@0.5.13
- slate-plain-serializer@0.5.13
- slate-prop-types@0.4.30
- slate-react@0.12.7
- slate-schema-violations@0.1.11
- slate-simulator@0.4.30
- slate@0.33.7
2018-06-10 17:05:20 -07:00
Irwan Fario Subastian
7f91d0b557
Inline Void block cursor ( #1886 )
...
* add contentEditable=false to void block wrapper
* put contentEditable fals on inline void
fix from https://github.com/ianstormtaylor/slate/pull/1734 works for block but inline void have a cursor which shouldn’t be there as typing inside inline void won’t work. so only removing contentEditable on blocks but not inline
* update test
2018-06-10 16:59:16 -07:00
Tobias Andersen
ee8bc1b695
Use cleaned up text content when copying into plain/text ( #1865 )
2018-06-10 16:48:28 -07:00
Alban Suchaire
9fc8b1085a
Set position data-slate-spacer block ( #1862 )
...
* Add position absolute to `data-slate-spacer` block
* Fix lint && update test
2018-06-10 16:26:51 -07:00
Cyril Auburtin
48caf855eb
avoid innerText ( #1837 )
...
better to avoid innerText https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent#Differences_from_innerText
2018-05-20 23:32:09 -07:00
Tobias Andersen
b4422ad6b3
Fix invalid ranges in getEventRange ( #1849 )
2018-05-20 23:30:37 -07:00
Tobias Andersen
ffb19cac1a
Remove legacy COMPAT code from cloneFragment ( #1836 )
2018-05-11 08:54:19 -07:00
Ian Storm Taylor
c1bad2b84c
Publish
...
- slate-base64-serializer@0.2.31
- slate-dev-environment@0.1.2
- slate-hotkeys@0.1.2
- slate-html-serializer@0.6.3
- slate-hyperscript@0.5.12
- slate-plain-serializer@0.5.12
- slate-prop-types@0.4.29
- slate-react@0.12.6
- slate-schema-violations@0.1.10
- slate-simulator@0.4.29
- slate@0.33.6
2018-05-10 19:50:06 -07:00
Tobias Andersen
62d87b23c0
Set clipboard data programmitcally on copy when supported ( #1815 )
2018-05-10 19:45:40 -07:00
Nicolas Gaborit
0cfd54fc19
Speed up decorations rendering ( #1801 )
...
* order, assign decoration ranges to node children
* move decorations ordering method to utils
* Add immutable dep. Prettify
* Try to improve perfs
* Fix orderChildDecorations
* Compute correct order from the start for range starts
* Add tests for order-child-decorations
* Optimize text decoration rendering
* Rewrite with simpler API. Apply it to Content as well
* Lint
* Fix tests
2018-05-10 19:43:59 -07:00
Ben Southgate
f37c3a4776
fix: prevent IE11 from throwing if selection contains tables ( #1825 )
...
* fix: prevent IE11 from throwing if selection contains tables
* fix: run prettier
* fix: lint
2018-05-10 19:07:11 -07:00
Jinxuan Zhu
e394ab450c
Fix lint problem ( #1810 )
2018-05-02 10:57:49 -07:00
Irwan Fario Subastian
a501d273f4
remove spellcheck force disable on firefox ( #1802 )
2018-05-01 18:03:24 -07:00
Jérémie van der Sande
3f2e924f69
[Fix] Copy with empty Block as first-child ( #1748 )
...
* [Fix] Copy with empty Block as first-child
+ Added Opera support for only-Mark copy
* [Fix] Fixed one missing remove from merge
2018-05-01 17:44:49 -07:00
Tobias Andersen
794e705c72
remove draggable attribute from void nodes ( #1731 )
2018-05-01 17:38:31 -07:00
Ian Storm Taylor
c15f200d10
Publish
...
- slate-base64-serializer@0.2.30
- slate-dev-environment@0.1.1
- slate-hotkeys@0.1.1
- slate-html-serializer@0.6.2
- slate-hyperscript@0.5.11
- slate-plain-serializer@0.5.11
- slate-prop-types@0.4.28
- slate-react@0.12.5
- slate-schema-violations@0.1.9
- slate-simulator@0.4.28
- slate@0.33.5
2018-04-27 16:49:53 -07:00
Ian Storm Taylor
19e08ed38e
Merge branch 'master' of github.com:ianstormtaylor/slate
2018-04-27 15:28:18 -07:00
Ian Storm Taylor
f19cde92c7
fix internal copies that start with a void node
2018-04-27 15:28:02 -07:00
Jinxuan Zhu
3efd6df1e3
Update debug package in package.json ( #1781 )
...
* Update debug package
* add yarn.lock back
2018-04-27 14:11:14 -07:00
Jinxuan Zhu
6e6e9cf710
Fix spell check bug ( #1753 )
...
* Fix spell check bug by add data-text:true
* Fix spell check bug by spell check add length to a leaf
* Fix tests to use data-text:true for marks
* Rename data-text to data-slate-leaf; Remove setRef; unlift attributes in leaf
* Update examples with data-*
* Add attributes to document
* Fix renderMark in all documents
* Prettier markdown
2018-04-27 14:06:24 -07:00
Gergely Illés
da89f58c4c
remove extra force re-renders on onCompositionStart/End ( #1711 )
2018-04-27 13:57:09 -07:00
Benjy Cui
fb172dec6f
fix: make void node selectable for edge case, close : #1639 ( #1734 )
2018-04-27 13:42:53 -07:00
pferdone
4712e64c30
Removed early return in onDragOver ( #1772 )
2018-04-27 13:20:51 -07:00
Justin Weiss
d4c630c05a
Extract hotkey and environment detection into separate packages ( #1760 )
...
* Extract hotkey and environment detection into separate packages
Overriding default behavior in plugins can be hard, because you have
to match all of the keybindings that Slate uses. By exporting hotkeys
as its own package, both core Slate plugins and custom plugins can use
the same key detection logic.
* Rename Hotkeys.* to Hotkeys.is*
2018-04-27 13:19:39 -07:00
Ian Storm Taylor
fb8075a233
Publish
...
- slate-base64-serializer@0.2.29
- slate-html-serializer@0.6.1
- slate-hyperscript@0.5.10
- slate-plain-serializer@0.5.10
- slate-prop-types@0.4.27
- slate-react@0.12.4
- slate-schema-violations@0.1.8
- slate-simulator@0.4.27
- slate@0.33.4
2018-03-28 09:50:20 -07:00
Benjy Cui
950c5a92e1
fix: add missing hotkey for delete line backward, close : #1617 ( #1735 )
2018-03-28 11:12:41 +02:00
Benjy Cui
15f96fcfce
fix: add missing hotkey for delete word backward, close : #1709 ( #1729 )
2018-03-27 23:17:36 -07:00
Benjy Cui
a325696339
fix: Editor[autoFocus] should work, close : #1669 ( #1733 )
2018-03-27 23:15:51 -07:00
David Hrdlicka
4346ad0e3f
Fix cloneFragment to work with multiple Editor instances ( #1728 )
2018-03-26 17:52:03 -07:00
Ian Storm Taylor
86af03dd30
Publish
...
- slate-base64-serializer@0.2.28
- slate-html-serializer@0.5.9
- slate-hyperscript@0.5.9
- slate-plain-serializer@0.5.9
- slate-prop-types@0.4.26
- slate-react@0.12.3
- slate-schema-violations@0.1.7
- slate-simulator@0.4.26
- slate@0.33.3
2018-03-22 14:51:41 -07:00
Ben Southgate
804ea5d4d0
fix: ensure that offset is positive in findDomRange ( #1719 )
2018-03-22 14:48:09 -07:00
Stan Chang Khin Boon
bff3d34a2d
Don't stop propagation of drop event ( #1716 )
...
Summary:
We mirrored the fix in PR #1278 (meant for #1277 ) but for drop event.
This fixed an issue I faced with Slate swallowing drop event, kind of breaking compatibility with react-dnd.
/cc @AlbertHilb
2018-03-22 14:22:57 -07:00
Ian Storm Taylor
b17bf1a7b9
Publish
...
- slate-base64-serializer@0.2.27
- slate-html-serializer@0.5.8
- slate-hyperscript@0.5.8
- slate-plain-serializer@0.5.8
- slate-prop-types@0.4.25
- slate-react@0.12.2
- slate-schema-violations@0.1.6
- slate-simulator@0.4.25
- slate@0.33.2
2018-03-21 16:58:48 -07:00
Ian Storm Taylor
36c7f4fc32
fix peerDependencies in slate packages, closes #1690
2018-03-21 16:56:20 -07:00
Ian Storm Taylor
0587a5f916
Publish
...
- slate-base64-serializer@0.2.26
- slate-html-serializer@0.5.7
- slate-hyperscript@0.5.7
- slate-plain-serializer@0.5.7
- slate-prop-types@0.4.24
- slate-react@0.12.1
- slate-schema-violations@0.1.5
- slate-simulator@0.4.24
- slate@0.33.1
2018-03-21 16:38:29 -07:00
vilicvane
44d8021921
Fix #474 ( #1700 )
...
e0978a31e9 (commitcomment-28060594)
2018-03-21 14:09:04 -07:00
Ian Storm Taylor
257580052d
Publish
...
- slate-base64-serializer@0.2.25
- slate-html-serializer@0.5.6
- slate-hyperscript@0.5.6
- slate-plain-serializer@0.5.6
- slate-prop-types@0.4.23
- slate-react@0.12.0
- slate-schema-violations@0.1.4
- slate-simulator@0.4.23
- slate@0.33.0
2018-02-21 18:12:43 -08:00
Ian Storm Taylor
2e2ab66b60
update changelogs
2018-02-21 18:11:54 -08:00