1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-13 19:57:00 +01:00

239 Commits

Author SHA1 Message Date
Conor Cussell
b2e0612149 Deal with invalid range passed to getSelectionIndexes (#1443)
* Deal with invalid range in getSelectionIndexes

* Use range is unset
2017-12-11 06:54:46 -08:00
Ian Storm Taylor
cef33de6aa Publish
- slate-base64-serializer@0.2.15
 - slate-html-serializer@0.4.13
 - slate-hyperscript@0.4.13
 - slate-plain-serializer@0.4.13
 - slate-prop-types@0.4.13
 - slate-react@0.10.20
 - slate-simulator@0.4.13
 - slate@0.31.5
2017-12-04 11:31:07 -08:00
Evan Henley
4f1c26961d refactor scroll logic (#1428) 2017-12-04 11:27:54 -08:00
Thomas Preusse
a4028cac6b fix nodes validation with an optional first child (#1444)
When moving to the next definition because of a fulfilled min a child could
slip through without being valid.
2017-12-04 11:27:26 -08:00
Ian Storm Taylor
199c32a2b5 Publish
- slate-react@0.10.19
2017-12-02 13:53:25 -08:00
Ian Storm Taylor
4e021f58b5
handle native selectionchange event, closes #1135 (#1441) 2017-12-02 13:52:23 -08:00
Ian Storm Taylor
e06281bcf2 update packages readme 2017-12-02 13:51:32 -08:00
Ian Storm Taylor
a3fcb5dfa2 update packages readme 2017-12-02 13:49:38 -08:00
Ian Storm Taylor
5df62975a9 update readmes 2017-12-02 13:48:51 -08:00
Ian Storm Taylor
ac9965151a Publish
- slate-base64-serializer@0.2.14
 - slate-html-serializer@0.4.12
 - slate-hyperscript@0.4.12
 - slate-plain-serializer@0.4.12
 - slate-prop-types@0.4.12
 - slate-react@0.10.18
 - slate-simulator@0.4.12
 - slate@0.31.4
2017-12-02 13:07:39 -08:00
Justin Weiss
105b384ccb Fix activeMarks at the beginning of a line (#1434)
If you move to the beginning of a text node, and the previous text
node has marks, `marks` is set but `activeMarks` is not. This was
caused by `getActiveMarksAtRangeAsArray` looking for a function that
didn't exist. With this change, `activeMarks` is brought in line with
how `marks` works for collapsed selections.
2017-12-02 12:35:16 -08:00
David Hrdlicka
8928363471 Fix inserting text with hanging selection, issue #1189 (#1432) 2017-12-02 12:29:00 -08:00
Raffy Li
b3324db24c fix editor auto focus (#1438)
current implement of auto focus is buggy, HTMLElement.focus method
have no effect on selection state of editor, another re-render will
cause editor blur unexpectedly.
2017-12-02 12:06:17 -08:00
Ian Storm Taylor
f3b1a806d7 Publish
- slate-base64-serializer@0.2.13
 - slate-html-serializer@0.4.11
 - slate-hyperscript@0.4.11
 - slate-plain-serializer@0.4.11
 - slate-prop-types@0.4.11
 - slate-react@0.10.17
 - slate-simulator@0.4.11
 - slate@0.31.3
2017-11-19 13:04:26 -08:00
dmitrizzle
5542766092 Managing History limits (#1421)
* Undo size is measured in  rather than

* Revert local settings
2017-11-19 13:01:08 -08:00
Nicolas Gaborit
aec62f06ba Update benchmark to use Value (#1420) 2017-11-19 12:46:52 -08:00
Ian Storm Taylor
0d43d26f91 Publish
- slate-react@0.10.16
2017-11-16 13:13:26 -08:00
Ian Storm Taylor
ed32159be7 fix to default window in findDOM* utils 2017-11-16 13:12:42 -08:00
Ian Storm Taylor
7cfc7fae68 Publish
- slate-base64-serializer@0.2.12
 - slate-dev-logger@0.1.36
 - slate-html-serializer@0.4.10
 - slate-hyperscript@0.4.10
 - slate-plain-serializer@0.4.10
 - slate-prop-types@0.4.10
 - slate-react@0.10.15
 - slate-simulator@0.4.10
 - slate@0.31.2
2017-11-16 12:21:24 -08:00
Ian Storm Taylor
59a7197f81 fix inverting of split_node and merge_node operations 2017-11-16 12:20:30 -08:00
Ian Storm Taylor
afc969b5ba update slate-dev-logger deps 2017-11-16 11:51:22 -08:00
Ian Storm Taylor
2f09811fc2 Publish
- slate-base64-serializer@0.2.11
 - slate-dev-logger@0.1.35
 - slate-html-serializer@0.4.9
 - slate-hyperscript@0.4.9
 - slate-plain-serializer@0.4.9
 - slate-prop-types@0.4.9
 - slate-react@0.10.14
 - slate-simulator@0.4.9
 - slate@0.31.1
2017-11-16 11:49:23 -08:00
Ian Storm Taylor
7de909cfe4 fix to make lists of operations immutable too 2017-11-16 11:48:46 -08:00
Ian Storm Taylor
ffe9f8258f Publish
- slate-base64-serializer@0.2.10
 - slate-dev-logger@0.1.34
 - slate-html-serializer@0.4.8
 - slate-hyperscript@0.4.8
 - slate-plain-serializer@0.4.8
 - slate-prop-types@0.4.8
 - slate-react@0.10.13
 - slate-simulator@0.4.8
 - slate@0.31.0
2017-11-16 11:35:00 -08:00
Ian Storm Taylor
e567b79a88 update changelog 2017-11-16 11:33:27 -08:00
Ian Storm Taylor
f1f07da5e5
add immutable operation model, with serialization (#1409)
* add immutable operation model, with serialization

* fix split node operations, and deserializing operations
2017-11-16 11:32:13 -08:00
Ian Storm Taylor
00819c1776 Publish
- slate-base64-serializer@0.2.9
 - slate-dev-logger@0.1.33
 - slate-html-serializer@0.4.7
 - slate-hyperscript@0.4.7
 - slate-plain-serializer@0.4.7
 - slate-prop-types@0.4.7
 - slate-react@0.10.12
 - slate-simulator@0.4.7
 - slate@0.30.7
2017-11-14 21:02:34 -08:00
Robert Dale Smith
b973580c54 corrects overscroll issue inside scrollable containers (#1032) (#1383)
* corrects overscroll issue inside scrollable containers; another fix for #1032

* fix(#1032) - set scrollers offset if within scrollable container
2017-11-13 11:49:26 -08:00
danielsarin
038de22b43 fix calling onChange handler after Editor component unmount (#1399) 2017-11-13 11:48:23 -08:00
João Pereira
267800c26f Add support to iframe (#1396)
* pass window to util functions

* remove unused getWindow function

* fix findDOMNode in after plugin
2017-11-13 11:42:09 -08:00
Gergely Illés
5a6878bccf IE 11 compatibility, use Selection.collapse/extend instead of Selection.setBaseAndExtent (#1386)
* IE 11 compatibility, use Selection.collapse/extend instead of Selection.setBaseAndExtent

* lint

* use collapse/extend for both forward and backward selection

* lint

* use of Selection.extend if supported

* IE11 selection compat

* cleanup

* clean up IE 11 compat code
2017-11-13 11:40:20 -08:00
joehua87
0a5bfd2adc Update find-point.js (#1373) 2017-11-11 15:50:53 -08:00
Yifeng Wang
9a5d97e6d1 fix deleteLine with first void inline node (#1377) 2017-11-11 15:49:33 -08:00
AlbertHilb
64eb1169af Render text inside void nodes with a zero-width space. (#1388)
So the node can contain selection but the text is not
visible.
2017-11-11 15:35:30 -08:00
Ashutosh Rishi Ranjan
8d9971afc3 Fixed simulator handler arg order (#1372) 2017-11-11 15:29:27 -08:00
Yifeng Wang
816c981436 replace setTimeout (#1371) 2017-11-11 15:28:55 -08:00
Ian Storm Taylor
0afe15fa76 Publish
- slate-react@0.10.11
2017-11-01 21:30:28 -07:00
Irwan Fario Subastian
0a6d163ece scroll to the correct position (#1370) 2017-11-01 21:28:50 -07:00
Irwan Fario Subastian
0b70ca85d5 fix scrolling on slate inside scrollable container that is not a window (#1369) 2017-11-01 18:43:24 -07:00
Ian Storm Taylor
7ea6d3cbeb Publish
- slate-react@0.10.10
2017-11-01 11:23:08 -07:00
Ian Storm Taylor
87887e7f77 update is apple check 2017-11-01 11:19:54 -07:00
Ryan Grove
87d8eb1ba4 Fix broken iOS UA sniff that identified iOS as macOS (#1365)
UA sniffing stops at the first match when trying to determine the
client's OS. Since the macOS sniff always ran before the iOS sniff and
matched the string "mac os x", which is also present in iOS Safari's
user agent string, `IS_MAC` was always `true` for iOS Safari and
`IS_IOS` was always `false`.

The iOS sniff now runs before the macOS sniff, which prevents false
positives. Existing uses of `IS_MAC` that should also apply to iOS have
been updated to check for `IS_MAC || IS_IOS`.

This also re-fixes #1176 and #1177, which regressed when a recent change
added `IS_IOS` checks that inadvertently prevented code from running on
iOS.
2017-11-01 11:15:45 -07:00
Ian Storm Taylor
e218f8a191 Publish
- slate-base64-serializer@0.2.8
 - slate-dev-logger@0.1.32
 - slate-html-serializer@0.4.6
 - slate-hyperscript@0.4.6
 - slate-plain-serializer@0.4.6
 - slate-prop-types@0.4.6
 - slate-react@0.10.9
 - slate-simulator@0.4.6
 - slate@0.30.6
2017-11-01 00:15:09 -07:00
Ian Storm Taylor
b8c60437db update schema merge customizer for better merging 2017-11-01 00:14:30 -07:00
Ian Storm Taylor
e6383cd40d Publish
- slate-base64-serializer@0.2.7
 - slate-dev-logger@0.1.31
 - slate-html-serializer@0.4.5
 - slate-hyperscript@0.4.5
 - slate-plain-serializer@0.4.5
 - slate-prop-types@0.4.5
 - slate-react@0.10.8
 - slate-simulator@0.4.5
 - slate@0.30.5
2017-10-31 23:45:42 -07:00
Ian Storm Taylor
d2ff824e61 fix schema first/last rules when nodes is empty 2017-10-31 23:45:05 -07:00
Ian Storm Taylor
906b499ff1 Publish
- slate-base64-serializer@0.2.6
 - slate-dev-logger@0.1.30
 - slate-html-serializer@0.4.4
 - slate-hyperscript@0.4.4
 - slate-plain-serializer@0.4.4
 - slate-prop-types@0.4.4
 - slate-react@0.10.7
 - slate-simulator@0.4.4
 - slate@0.30.4
2017-10-31 22:44:41 -07:00
Ian Storm Taylor
485bfb6aa4 fix to only merge in history when possible 2017-10-31 22:43:48 -07:00
Ian Storm Taylor
fe640f7afb Publish
- slate-react@0.10.6
2017-10-31 22:27:57 -07:00
Blake Embrey
8942598ef8 Avoid changing selection when deleting old content (#1361) 2017-10-31 22:25:29 -07:00