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
Ian Storm Taylor
8a2368f851
update pull request template
2018-05-10 19:25:18 -07:00
Jinxuan Zhu
49c84cfaec
Optimize getMarks(AtRange), getActiveMarksAtRange, getInsertMarksAtRange, remove the dependency of getCharacters ( #1808 )
...
* Rewrite getCharacters(AtRange); rewrite getMarks
* Single concat for getMarks
* getActiveMarksAtRange
* getMarksAtRange and getInsertMakrsAtRange
* fix typo
* import getTextsBetweenPositionsAsArray to run getMarks
* Fix eslint error
* Restore getTextsAtRange
* Remove getMarksAtCollapsedRange; Add annotations
* Annotation
* Fix endTexts
* Fix typos
* Fix long line
* Fix getTextsAtRange List; Fix getTextsAtRangeAsArray
* Explain early return for character.marks short cut
* Styling
* Styling
* Styling
2018-05-10 19:15:33 -07:00
Guillaume Dominici
2298d2dda1
Add checklist for tests to PR Template ( #1832 )
2018-05-10 19:08:20 -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
Nikolay Kazakov
7684fff545
Fix issue when a nested in mark node a "void" inline node is the cause of error in applyMark method ( #1831 )
2018-05-10 19:05:55 -07:00
Nikolay Kazakov
e464bd652e
Updated gitignore file ( #1830 )
2018-05-10 19:00:46 -07:00
Ian Storm Taylor
131eec1778
Create PULL_REQUEST_TEMPLATE.md
2018-05-02 14:25:51 -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
David Chang
c4c1d764d6
[examples] fix rich text editor active block logic ( #1803 )
2018-05-01 17:43:50 -07:00
Tobias Andersen
794e705c72
remove draggable attribute from void nodes ( #1731 )
2018-05-01 17:38:31 -07:00
Ian Storm Taylor
1fff68d625
remove unreleased from changelog
2018-04-27 16:53:40 -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
slate@0.33.5
slate-simulator@0.4.28
slate-schema-violations@0.1.9
slate-react@0.12.5
slate-prop-types@0.4.28
slate-plain-serializer@0.5.11
slate-hyperscript@0.5.11
slate-html-serializer@0.6.2
slate-hotkeys@0.1.1
slate-dev-environment@0.1.1
slate-base64-serializer@0.2.30
2018-04-27 16:49:53 -07:00
Ian Storm Taylor
f07fc92f2e
fix selection logic for non-merging fragments
2018-04-27 16:36:42 -07:00
Ian Storm Taylor
d868c809ab
Merge branch 'master' of github.com:ianstormtaylor/slate
2018-04-27 16:05:40 -07:00
Ian Storm Taylor
657757d1dc
add polyfill.io for polyfills to example
2018-04-27 16:03:20 -07:00
Sunny Hirai
360c522a45
Update change.md to include setValue ( #1670 )
...
* Update change.md
* Update change.md
* Update change.md
* Update change.md
* Update change.md
2018-04-27 15:55:08 -07:00
Yifeng Wang
7c76fe7120
Limit melding behavior in insertFragmentAtRange
( #1366 )
...
* fix insert nested single block fragment
* disable merging multi nested blocks
2018-04-27 15:54:31 -07:00
jasonphillips
0dc2a4feab
slate-hyperscript tests and decorations ( #1777 )
...
* initial simple decorations (mark-like), many tests added
* allow decorators to be set by focus, anchor tags - add tests
* handle one more edge case with decorations in hyperscript
* apply prettier cleanup
* apply linting rules
* update changelog
* ensure always normalize decoration ranges
* reapply prettier after latest adjustments
* update in response to review
* drop unnecessarily committed add'l file
* remove the need for explicit anchor, focus prop on decoration tags
2018-04-27 15:50:20 -07:00
Ian Storm Taylor
184722bdbf
remove travis ci hack, update upath subdependency
2018-04-27 15:48:16 -07:00
Ian Storm Taylor
eb22ae4c83
fix travis ci
2018-04-27 15:45:50 -07:00
Ian Storm Taylor
ec10ab4d7d
fix ci, remove bootstrap command
2018-04-27 15:39:33 -07:00
Ian Storm Taylor
57638c857e
fix incorrect test
2018-04-27 15:32:57 -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
b79c4d810d
Fix a bug in normalizeNodeByKey ( #1786 )
2018-04-27 14:31:04 -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
7e663eea12
Ensure cursor is shown after delete hanging selection ( #1779 )
2018-04-27 14:08:36 -07:00
Jinxuan Zhu
bbbf73fc12
Fix splitBlock bug with hanging selection ( #1747 )
...
* Fix splitBlock bug with hanging selection
* Restore marks
2018-04-27 14:07:39 -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
Jinxuan Zhu
9b39a89f20
Hanging Selection paste in insertFragmentAtRange ( #1742 )
2018-04-27 14:02:56 -07:00
Nima Mehanian
2dd77c00f1
Update adding-event-handlers.md ( #1751 )
...
* Update adding-event-handlers.md
Make clarifying changes to sentence structure and code sample syntax
* Revert to React.Component declaration
* Update adding-event-handlers.md
2018-04-27 14:01:17 -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
Nicolas Gaborit
42ff90e9cd
Remove unused dependencies ( #1796 )
...
* Remove unused slate-sugar
* Remove unused dependencies
2018-04-27 13:27:25 -07:00
Benjy Cui
404862c579
refactor: remove useless .indexOf to improve perf ( #1783 )
2018-04-27 13:26:43 -07:00
Gabin Aureche
d6245fbadf
Fix replaceNodeByKey failing to normalize node's parent ( #1791 )
2018-04-27 13:24:29 -07:00
Nicolas Gaborit
9e50bc6b1f
Pass options to fromJSON from Value.create ( #1787 )
...
I guess this was an omission, or the arguments were not updated since a long time
2018-04-27 13:23:15 -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
Jinxuan Zhu
1cd1bcb3e2
Feature: setTextByKey and replaceTextByKey ( #1745 )
...
* basic functions
* basic tests
* First Complish: tests and functions for setTextByKey and replaceTextByKey
2018-04-27 13:18:37 -07:00
Nicolas Gaborit
099c6ada72
slate-hyperscript: Fix extra empty text at the end of children ( #1379 )
...
* Add failing test
* Don't push extra text node at the end of children
* Fix keys in tests
* Add option `normalize` to <value>
* Write Changelog
* Changelog on correct package
* Fix preserve keys test
* Fix tests (which make more sense now)
* Mark failing test as skipped
* Account for skip option
* Lint and fix changelog version
* Use Unreleased instead of version
* Lint markdown
2018-04-27 13:16:11 -07:00
DamareYoh
a943eada85
added documentation for wrapNodeByKey ( #1774 )
...
* added documentation for wrapNodeByKey
* remove extraneous newline
* fixed weird typo!
2018-04-15 17:40:55 +01:00
Mitchel Humpherys
30143adf60
docs: walkthroughs: saving: Fix grammar ( #1766 )
...
Should be possessive (you're => your)
2018-04-10 14:59:21 +01:00
Mateo Ochoa
0a2d68a97f
Update faq.md ( #1750 )
2018-04-03 11:31:20 +01: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
slate@0.33.4
slate-simulator@0.4.27
slate-schema-violations@0.1.8
slate-react@0.12.4
slate-prop-types@0.4.27
slate-plain-serializer@0.5.10
slate-hyperscript@0.5.10
slate-html-serializer@0.6.1
slate-base64-serializer@0.2.29
2018-03-28 09:50:20 -07:00
Nikolay Kazakov
d2eb362234
Fixed syntax mismatch at normalize method ( #1737 )
...
`switch` operator was wrapped around `case` statements
2018-03-28 09:15:12 -07:00