1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-21 05:42:00 +02:00

3152 Commits

Author SHA1 Message Date
CameronAckermanSEL
e7b5f75989 fixed path to examples 2020-08-19 09:23:39 -07:00
Wendell Hu
912d4b79da
docs: convert examples to typescript (#3766)
* docs: convert examples to typescript

* docs: convert remaining examples

* docs: update next.js

* ci: fix lint

* docs: fix next.js path

* docs: cleanup

* update

Co-authored-by: wendellhu <wendellhu@tencent.com>
2020-08-19 09:14:51 -07:00
Jason Tamulonis
7b2b6df215
Remove duplicate transform code (#3793) 2020-08-18 16:33:22 -07:00
Marcus Wood
9f3bc0a4da
Fix typo (#3827) 2020-08-18 15:21:41 -07:00
Diana Lease
63f099952e
fix(slate-react): update onDOMBeforeInput when onDOMBeforeInput prop changes (#3617) (#3829)
Signed-off-by: Diana Lease <dianarlease@gmail.com>
2020-08-18 15:21:14 -07:00
Brent Farese
0468290eee
Replace Iterable with Generator. (#3726)
* Replace Iterable with Generator for correct types.
2020-08-06 20:17:50 -04:00
Maria Jaramillo
d5eaa1164d
Fixed html (#3809)
* Add version 100.0.0 to package.json

* Revert "Add version 100.0.0 to package.json"

This reverts commit 329e44e43d968700655b1c46f968bfd3147e7339.

* fixed typo in html file

Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
2020-08-05 15:57:48 -07:00
dependabot[bot]
983961dfcd
Bump elliptic from 6.5.1 to 6.5.3 (#3806)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.1 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.1...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 10:32:33 -04:00
dependabot[bot]
7b1768aba3
Bump lodash from 4.17.15 to 4.17.19 (#3790)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 10:29:29 -04:00
Awasum Yannick
a180cc5300
Auto Rebase Github Action (#3774)
* Auto Rebase Github Action

* Update .github/workflows/rebase.yml

Place env at the beginning of job.

Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>

Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
2020-07-31 08:18:31 -04:00
Jason Tamulonis
1cf63f0a19
Make Range.transform options optional (#3794) 2020-07-24 15:27:22 -04:00
Maria Jaramillo
93fe251517
Convert Slate tests to TypeScript (#3784)
* changed to tsx

* slate tests

* finished making typescript tests

* linting

* linting

* reverted slate-hyperscript files to jsx and changed edlint config

* removed extra file

* Update package.json

* Update package.json

* deleted { file

* changed to tsx

* slate tests

* finished making typescript tests

* linting

* linting

* reverted slate-hyperscript files to jsx and changed edlint config

* removed extra file

* Update package.json

* Update package.json

* deleted { file

* rebase

* removed ~ files

* changed yarn
2020-07-14 13:47:47 -04:00
Nikolay Martynenko
97dbab13a8
Trigger editor.insertText by paste too (#3776) 2020-07-10 09:31:25 -07:00
Mitchell Busby
68acd6b876
Resolves iamstormtaylor/slate#3778: Check if editable target before handling paste event (#3779) 2020-07-10 09:30:26 -07:00
Maria Jaramillo
a35b8737b7
syntax highlighting (#3762)
* syntax highlighting

* Delete package-lock.json

* Update package.json

* Update package.json

* Delete syntax-highlighting.js

* Update [example].js

* Update [example].js

* Update [example].js

* added correct file

* linting

* Update site/examples/code-highlighting.js

Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>

* Update site/examples/code-highlighting.js

Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>

* Update site/examples/code-highlighting.js

Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>

* updated pull request with some linting

* moved getLength fcn

Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
2020-07-09 18:23:56 -04:00
CameronAckermanSEL
958189bc4a v0.58.4 v0.58.4 2020-07-07 18:17:33 -07:00
Jason Tamulonis
b1f291ef88
Remove legacy target operation property (#3743) 2020-07-02 08:25:13 -07:00
Jatin Shridhar
1e495a5cde
minor elaboration on decorations (#3747)
* minor elaboration on decorations

 highlights the difference with marks

* instead of pronoun use the word "Decorations"
2020-07-02 08:21:58 -07:00
wendellhu
c8a7883b2a
doc: fix parenthesis missing (#3754) 2020-07-02 08:21:20 -07:00
Frederik Eychenié
32e120af19
docs: remove unused "selection" from code example (#3731) 2020-06-13 09:49:00 -07:00
Frederik Eychenié
0954ffc191
docs: add GraphCMS to products using slate (#3732) 2020-06-13 09:48:12 -07:00
Dylan Markow
a5720b289f
Fix placeholder text alignment (#3724)
Using verticalAlign: text-top was causing a slight height change when entering actual content.
2020-06-05 11:44:35 -07:00
Dan
788a8cefdc
fix older chrome support (#3722)
* fix older chrome support

* fix chrome regex
2020-06-05 00:02:40 -07:00
Jack Hanford
5ba551ad48
Update 10-normalizing.md (#3721)
Add `Transforms` to slate import so code runs when copy/pasted 😃
2020-06-04 18:36:30 -07:00
CameronAckermanSEL
ca126fbb39 v0.58.3 v0.58.3 2020-06-03 18:24:33 -07:00
Jason Tamulonis
994514b415
Fix path transform for sibling ancestor moves (#3712)
* Fix path transform for sibling ancestor moves

* Add some more tests
2020-06-03 13:33:18 -07:00
Jamie Talbot
7c8eb8e80b
Allow void nodes to be copied. Fixes #3665 (#3716) 2020-06-03 09:34:28 -07:00
anatolzak
44675c2080
Overrode Mark Styles in Placeholder (#3703)
* disabled user select on placeholder

* fixed css property value without quotes

* overrode mark styles in placeholder

Co-authored-by: Cameron Ackerman <cameron_ackerman@selinc.com>
2020-05-28 14:56:41 -07:00
Jason Tamulonis
4e7327d238
Fix inverse of sibling move operation (#3691)
* Fix path transform against sibling move operations

* Fix my jibberish

* Add some comments
2020-05-28 14:54:05 -07:00
Jason Tamulonis
9054d3a381
Fix path transform against sibling move operations (#3675) 2020-05-27 17:19:41 -07:00
CameronAckermanSEL
97a7e8a469 v0.58.2 v0.58.2 2020-05-27 08:55:33 -07:00
anatolzak
20d7dd41b7
disabled user select on placeholder (#3701)
* disabled user select on placeholder

* fixed css property value without quotes
2020-05-27 08:46:02 -07:00
Mitchell Busby
26fbc1dc41
Fix scrolling boundary detection (see #3463) (#3678) 2020-05-20 17:32:56 -07:00
Nikolay Martynenko
31709160a3
Fix selection, if click event fired after (#3650) 2020-05-20 17:26:21 -07:00
Matthew Steedman
c1760127f1
Fix Editable onPaste handler not getting called (#3670) 2020-05-20 17:22:39 -07:00
Ziad Beyens
557c51e7d4
slate-plugins-next (#3692)
Co-authored-by: Cameron Ackerman <cameron_ackerman@selinc.com>
2020-05-20 17:03:35 -07:00
Scott Parker
76acd9c449
Remove Outline since they switched to ProseMirror (#3694) 2020-05-20 17:01:56 -07:00
Ali Muqaddas
9834fe4e95
Fix: ESlint Error (#3688)
Value is defined in the upper scope
2020-05-17 08:51:07 -07:00
Jolene Langlinais
c00f246c7e
docs(resources): adjust editor link (#3687)
Adjusting for the new monorepo for Accord Project Markdown Editor.
2020-05-14 23:12:29 -07:00
Kevin Simons
3c80c3e88b
Fix a few issues with the documentation (#3679)
* Fix a few issues with the documentation

* Add Kitemaker to the list of sites using Slate
2020-05-13 08:56:24 -07:00
CameronAckermanSEL
aabb9b50bd v0.58.1 v0.58.1 2020-05-11 16:31:12 -07:00
Cameron Ackerman
07c375f82e
Bugfix/fix bundles (#3673)
* fix index.js main bundles to be commonjs instead of modules

* Change rm -rf to rimraf to be cross os compatible

* add rimraf as  dependency

Co-authored-by: damareyoh <chackerman@wsu.edu>
2020-05-11 10:18:00 -07:00
whyour
08f7ef588c
fix hovering toolbar format hotkeys (#3667) 2020-05-10 23:01:35 -07:00
Ted Chen
a1ce4477c3
Update codepen in ISSUE_TEMPLATE.md for v0.58.0 (#3659)
Updates the codepen in the ISSUE_TEMPLATE.md to be a working example of v0.58.0
2020-05-06 21:47:52 -07:00
CameronAckermanSEL
8737f0411a v0.58.0 v0.58.0 2020-05-05 18:50:22 -07:00
CameronAckermanSEL
44c4b7dc8d updated changelog for 0.58.0 2020-05-05 18:41:45 -07:00
Cameron Ackerman
f4ee75d13d
fix issue #3651 where initial click on a void block can cause the editor to crash (#3654)
* fix issue #3651 where initial click on a void block can cause the editor to crash

* simplify non null cast for editor to element weakmap retrieve

* get prettier to shut up

* fixed comment
2020-05-05 10:31:01 -07:00
Nikolay Martynenko
e25c30c7a8
Fixing selection across a void node (i.e. mention or image) with the mouse (#3649)
* Fixing selection across a void node (i.e. mention or image) with the mouse.

* Fixing selection across a void nodes via mouse
2020-05-04 17:49:37 -07:00
CameronAckermanSEL
d82ffe49a5 Revert "Revert "TypeScript Improvement: Use [key: string]: unknown, not [key: string]: any (#3565)""
This reverts commit 81d2f9bb8f6a78590d7868deb289ec36fb208629.
2020-05-04 17:38:14 -07:00
CameronAckermanSEL
036ee664af v0.57.3 v0.57.3 2020-05-04 17:36:43 -07:00