Sihong
4b373dc290
fix: hide placeholder when composing ( #4352 )
2021-08-05 11:05:42 -07:00
gyh9457
bde6e80476
fix(slate-react): use Text.equals to compare leaf ( #4175 )
...
* fix(slate-react): use Text.equals to compare leaf
* refactor(slate-react): simplify MenoizedLeaf logic
* Create breezy-lizards-travel.md
* Update packages/slate-react/src/components/leaf.tsx
Co-authored-by: Ian Storm Taylor <ian@ianstormtaylor.com>
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
2021-08-05 10:42:41 -07:00
liangxiwei
13b3f9c783
Do not remove empty node in merge operation if it is first children i… ( #4287 )
...
* Do not remove empty node in merge operation if it is first children in parent(#4228 )
* Create merge-nodes-issue
* fix typo in changeset
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
2021-08-05 10:38:31 -07:00
Jake Donham
0188980796
fix bug: decorate is not called for immediate children of editor ( #4394 )
...
* fix bug: decorate is not called for immediate children of editor
* short-circuit return instead of else in Child
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
* oops missing brace
* changeset
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
2021-08-05 13:22:48 -04:00
Andrew Herron
0214b63077
Skip wrapping nodes when the only match is an editor ( #4253 )
...
* Skip wrapping nodes when the only match is an editor
* Check for empty path instead of using isEditor
2021-08-05 10:12:53 -07:00
Luke Murray
e6faf8e08d
add test case to cover issue from #4103 ( #4292 )
...
Landing this without a changeset as it's simply a test to cover a previously accepted fix.
2021-08-05 09:54:41 -07:00
Samarjeet
8def57665c
cypress: shadow-dom example test ( #4413 )
2021-08-05 12:08:37 -04:00
ilovecommits
81d62e129d
Remove unused useEffect import ( #4406 )
...
It's imported, but not actually being used.
2021-08-04 22:02:14 -07:00
Dylan Schiemann
4d133e02fc
Fix broken plugins link in Editor documentation ( #4335 )
2021-08-04 21:59:10 -07:00
Thomas
531707e746
Clean up imports ( #4319 )
2021-08-04 21:56:45 -07:00
Chase Adams
5169cf5ddb
fix sentence order in doc ( #4363 )
2021-08-04 21:55:37 -07:00
pubuzhixing8
8860c91300
feat(docs): add another member for slate ( #4393 )
2021-08-04 21:54:06 -07:00
ilovecommits
f3b316e816
Fix display bug in GitBook ( #4402 )
...
It appears that GitBook doesn't support ```typescript jsx. See https://docs.slatejs.org/walkthroughs/01-installing-slate
2021-08-04 21:53:37 -07:00
Samarjeet
fed9354764
Cypress tests for examples ( #4389 )
...
* cypress: mentions example test
* cypress: search highlighting test
* cypress: tables example test
* cypress: check html in richtext
* Update cypress/integration/mentions.ts
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
* Update cypress/integration/search-highlighting.ts
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
* cypress: reset page before each test case
* cypress: Custom command dataCy
* cypress: seperate directory for examples' tests
* cypress: remove comments
* cypress: add placeholder test
* cypress: add plain text test
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
2021-08-03 16:19:46 -04:00
Anish Aggarwal
97b280926c
Added cypress-test for code-highlighting ( #4409 )
...
* Added cypress-test for code-highlighting
* moved the codeHighlighting.ts example to the examples folder
2021-08-03 08:02:54 -04:00
Anish Aggarwal
a35fe46bff
added cypress test for check-list page ( #4383 )
...
* added cypress test for check-list page
* Update cypress/integration/checkLists.ts
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
* Update cypress/integration/checkLists.ts
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
* Update cypress/integration/checkLists.ts
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
* Added beforeEach() call
* moved the checkLists.ts example to the examples folder
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
2021-08-02 11:19:10 -07:00
Anish Aggarwal
baa43c3f2e
Added cypress test for links and markdownShortcuts ( #4397 )
...
* Added cypress test for links and markdownShortcuts
* Update cypress/integration/markdownShortcuts.ts
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
* Update cypress/integration/markdownShortcuts.ts
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
* Update cypress/integration/links.ts
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
2021-08-02 07:00:48 -07:00
Sunny Hirai
354b0092ee
docs: Fix links in Span API docs
2021-07-26 23:40:17 -07:00
Sunny Hirai
06a376d727
docs: add Span to documentation
2021-07-26 23:37:14 -07:00
Arsalan Khattak
083a3da220
fix: contributing link ( #4344 )
2021-07-21 11:38:41 +10:00
Sunny Hirai
106dd9cb37
docs: describe how empty element children normalization executes before all other normalizations
2021-07-19 17:52:53 -07:00
Sunny Hirai
c217dbb5b9
Fix scroll into view to scroll parent scrollables ( #4369 )
2021-07-09 15:12:13 -07:00
Krzysztof Mędrzycki
46c8871c9c
Re-render leaf when new properties were added to it ( #4347 )
2021-07-09 08:52:06 -07:00
Sunny Hirai
e79f238c76
Comment lintstagedrc properly so we know how and why it is there and the process for removing it in the future
2021-07-08 23:02:02 -07:00
Sunny Hirai
f4168e28d3
Match lintstagedrc to lint-staged in package.json
2021-07-08 22:59:12 -07:00
Sunny Hirai
c3c3670c8b
docs: Fix installing slate to pass prettier
2021-07-08 22:51:10 -07:00
Sunny Hirai
acfcd9aaf6
docs: Small change to 12-typescript.md to test linting
2021-07-08 22:47:01 -07:00
Sunny Hirai
e377c8f6d2
docs: Small change to test lint staging
2021-07-08 22:45:47 -07:00
Sunny Hirai
7ea482c3e3
docs: Improve wording on TypeScript docs
2021-07-08 20:05:32 -07:00
Coury Ditch
03eed53cf1
Fix typescript docs ( #4303 )
...
* Add docs on annotations for useState and initial editor value
* Typescript docs: Use initialValue
2021-07-08 19:50:13 -07:00
Sunny Hirai
03e8230196
docs: Improve documentation around Editor.before and Editor.after
2021-07-08 13:12:11 -07:00
Sunny Hirai
7d14bef63b
docs: Improve documentation for Editor.previous and Editor.next
2021-07-08 13:06:41 -07:00
Anish Aggarwal
19c9a8c86c
Added test for 'move-node' operation ( #4361 )
2021-07-07 09:25:21 -04:00
Sunny Hirai
51bfb40fad
Describe when we can remove lintstagedrc as a comment
2021-07-01 17:13:56 -07:00
Sunny Hirai
506d9bce53
Add syntax highlighting example to menu
2021-07-01 17:10:35 -07:00
github-actions[bot]
ea5e3e4ebf
Version Packages ( #4332 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.65.2
2021-06-09 12:04:11 -04:00
Szymon Wiszczuk
a3bc97af3e
Fix deletion of selected inline void nodes in Safari ( #4331 )
...
Co-authored-by: Claudéric Demers <clauderic.d@gmail.com>
2021-06-09 11:54:41 -04:00
github-actions[bot]
6c993523ca
Version Packages ( #4325 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.65.1
2021-06-09 11:07:27 -04:00
Jason Tamulonis
e042ebd4a2
Expose interface to setNormalizing ( #3859 )
2021-06-07 12:39:05 -07:00
Claudéric Demers
61171a2382
Fix backward typing bug in Safari by ensuring the selection is removed on blur ( #4324 )
...
Safari doesn't always remove the selection, even if the contenteditable element no longer has focus. In this scenario, we need to forcefully remove the selection on blur https://stackoverflow.com/questions/12353247/force-contenteditable-div-to-stop-accepting-input-after-it-loses-focus-under-web
2021-06-07 15:25:48 -04:00
Sunny Hirai
26f4b2521c
docs: Clarified that Editor.positions in reverse with a word changes the returned positions
2021-06-07 08:59:27 -07:00
Sunny Hirai
06121a3d82
docs: Fix typo
2021-06-06 22:57:30 -07:00
Sunny Hirai
c86d0b040b
docs: Improve styling and wording in Editor.positions
2021-06-06 22:52:20 -07:00
Sunny Hirai
1f08442ab2
docs: Add detailed description of how Editor.positions works
2021-06-06 22:42:32 -07:00
Sunny Hirai
1e6f60aa6d
docs: Try options syntax with defaults
2021-06-06 19:42:19 -07:00
Sunny Hirai
665b6c81ab
docs: Experiment with alternate Options syntax for documentation
2021-06-06 18:04:18 -07:00
Sunny Hirai
614260f771
docs: Experiment with using ts for showing API signature
2021-06-06 17:53:21 -07:00
Sunny Hirai
e2ae33043a
docs: Experiment with alternate options documentation format
2021-06-06 17:50:49 -07:00
Sunny Hirai
3baf1301bc
docs: Add docs for Text.isTextList
2021-06-06 17:33:02 -07:00
Sunny Hirai
3156bd0b94
docs: Describe Text.matches in detail and describe 'loose' option in Text.equals
2021-06-06 17:27:01 -07:00