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

2023 Commits

Author SHA1 Message Date
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
slate@0.31.1 slate-simulator@0.4.9 slate-react@0.10.14 slate-prop-types@0.4.9 slate-plain-serializer@0.4.9 slate-hyperscript@0.4.9 slate-html-serializer@0.4.9 slate-dev-logger@0.1.35 slate-base64-serializer@0.2.11
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
slate@0.31.0 slate-simulator@0.4.8 slate-react@0.10.13 slate-prop-types@0.4.8 slate-plain-serializer@0.4.8 slate-hyperscript@0.4.8 slate-html-serializer@0.4.8 slate-dev-logger@0.1.34 slate-base64-serializer@0.2.10
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
Tobias Andersen
1abc7e74b8 fix some typos in docs/guides (#1412) 2017-11-16 11:14:38 -08:00
Ian Storm Taylor
237ae9fc2f update JSFiddle links, closes #1407 closes #1404 2017-11-15 14:28:14 -08:00
ImgBot
68f11ca7b3 [ImgBot] optimizes images (#1405)
*Total: 1,903.39kb -> 1,523.20kb (19.97%)

\docs\images\auto-markdown-example.png -- 116.26kb -> 85.71kb (26.27%)
\docs\images\banner.png -- 11.74kb -> 3.95kb (66.4%)
\docs\images\links-example.png -- 104.37kb -> 75.41kb (27.74%)
\docs\images\preview.png -- 96.05kb -> 72.85kb (24.15%)
\docs\images\hovering-menu-example.png -- 100.86kb -> 73.46kb (27.17%)
\docs\images\icon.png -- 1.95kb -> 1.04kb (46.77%)
\docs\images\tables-example.png -- 110.42kb -> 81.08kb (26.57%)
\docs\images\logo.png -- 5.26kb -> 2.95kb (43.85%)
\docs\images\code-highlighting-example.png -- 115.29kb -> 86.31kb (25.14%)
\docs\images\forced-layout-example.png -- 103.95kb -> 98.07kb (5.66%)
\docs\images\images-example.png -- 245.30kb -> 220.21kb (10.23%)
\docs\images\jsfiddle.png -- 170.18kb -> 139.22kb (18.19%)
\docs\images\read-only-example.png -- 89.87kb -> 63.78kb (29.03%)
\docs\images\paste-html-example.png -- 176.66kb -> 136.64kb (22.65%)
\docs\images\plain-text-example.png -- 79.92kb -> 55.48kb (30.58%)
\docs\images\rich-text-example.png -- 103.41kb -> 75.30kb (27.19%)
\docs\images\slack.png -- 271.90kb -> 251.73kb (7.42%)
2017-11-15 14:21:25 -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
slate@0.30.7 slate-simulator@0.4.7 slate-react@0.10.12 slate-prop-types@0.4.7 slate-plain-serializer@0.4.7 slate-hyperscript@0.4.7 slate-html-serializer@0.4.7 slate-dev-logger@0.1.33 slate-base64-serializer@0.2.9
2017-11-14 21:02:34 -08:00
来诺
72f49bf6d7 Fix image example's onPaste (#1375)
* Fix image example's onPaste

* Fix lint test

* Add custom onDrop back to support files drop

* Check event type in onDropOrPaste
2017-11-13 11:53:31 -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
Yifeng Wang
4e420413bb fix drop on inline void node (#1376) 2017-11-11 15:31:50 -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
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
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
slate@0.30.6 slate-simulator@0.4.6 slate-react@0.10.9 slate-prop-types@0.4.6 slate-plain-serializer@0.4.6 slate-hyperscript@0.4.6 slate-html-serializer@0.4.6 slate-dev-logger@0.1.32 slate-base64-serializer@0.2.8
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
slate@0.30.5 slate-simulator@0.4.5 slate-react@0.10.8 slate-prop-types@0.4.5 slate-plain-serializer@0.4.5 slate-hyperscript@0.4.5 slate-html-serializer@0.4.5 slate-dev-logger@0.1.31 slate-base64-serializer@0.2.7
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
slate@0.30.4 slate-simulator@0.4.4 slate-react@0.10.7 slate-prop-types@0.4.4 slate-plain-serializer@0.4.4 slate-hyperscript@0.4.4 slate-html-serializer@0.4.4 slate-dev-logger@0.1.30 slate-base64-serializer@0.2.6
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
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
Joel Gustafson
dd87e3b26d Update saving-and-loading-html-content.md (#1362)
Fixed a typo: should be `paragraph`, not `code`.
2017-10-31 22:24:32 -07:00
Ian Storm Taylor
11c9c0bef5 Publish
- slate-base64-serializer@0.2.5
 - slate-dev-logger@0.1.29
 - slate-html-serializer@0.4.3
 - slate-hyperscript@0.4.3
 - slate-plain-serializer@0.4.3
 - slate-prop-types@0.4.3
 - slate-react@0.10.5
 - slate-simulator@0.4.3
 - slate@0.30.3
slate@0.30.3 slate-simulator@0.4.3 slate-react@0.10.5 slate-prop-types@0.4.3 slate-plain-serializer@0.4.3 slate-hyperscript@0.4.3 slate-html-serializer@0.4.3 slate-dev-logger@0.1.29 slate-base64-serializer@0.2.5
2017-10-31 21:11:44 -07:00
Ian Storm Taylor
98ed83c23b
Add schema first/last definitions (#1360)
* add `first` and `last` validations to schema

* update docs

* update schema usage in images example

* fix forced-layout example
2017-10-31 21:11:05 -07:00
Blake Embrey
6dc3c6441c Fallback to last leaf node when inserting change (#1359) 2017-10-31 21:07:27 -07:00
Ch1ll0ut1
cfa8cf6834 Feature/add marks (#1306)
* add required yarnrc config to run yarn run bootstrap

* add convience method to add list of marks

* remove semicolon

* remove yarn rc

* change addMarks to simply call addMark for each mark

* add required yarnrc config to run yarn run bootstrap

* add convience method to add list of marks

* remove semicolon

* remove yarn rc

* change addMarks to simply call addMark for each mark

* rename state tag to value tag in test cases
2017-10-31 20:27:06 -07:00
Ian Storm Taylor
3d925a0561 Publish
- slate-react@0.10.4
slate-react@0.10.4
2017-10-31 19:07:00 -07:00
Ian Storm Taylor
6b716a0d8c fix lint 2017-10-31 19:06:01 -07:00
Ian Storm Taylor
b76c26e980 update clean script 2017-10-31 19:05:24 -07:00
Blake Embrey
0d7fccc91c Avoid executing hotkeys while composing (#1357) 2017-10-31 19:01:13 -07:00
Per-Kristian Nordnes
1b4532a9aa [WIP] Scoll to selection tweaks, possible fix for #1032 (#1165)
* Scoll to selection tweaks, possible fix for #1032

* Update scroll-to-selection.js

* Update scroll-to-selection.js
2017-10-31 19:00:02 -07:00
Blake Embrey
40def34e5b Fix native IME input at the beginning of a line (#1353) 2017-10-31 18:11:07 -07:00
Ian Storm Taylor
10a077059d cleanup and add compat comments 2017-10-31 18:10:45 -07:00
Irwan Fario Subastian
ac8df1cfff fix backward selection always changed to forward (#1354) 2017-10-31 18:02:22 -07:00
Ian Storm Taylor
411e1667d6 fix slate-react size badge 2017-10-31 14:25:05 -07:00
Ian Storm Taylor
c2fe761fcb add version badges 2017-10-31 14:20:26 -07:00
Ian Storm Taylor
81443f0001 fix badges 2017-10-31 14:09:51 -07:00