1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-26 08:34:28 +02:00

11 Commits

Author SHA1 Message Date
Brian Bucknam
346f6572fc Allow void elements to receive marks (#5135)
Some void elements are effectively stand-ins for text, such as with the mentions example,
where the mention element renders the character's name. Users might want to format Void
elements like this with bold, or set their font and size, so `editor.markableVoid` tells
Slate whether or not to apply Marks to the text children of void elements.

- Adds `markableVoid()` as a schema-specific overrideable test.
- Changes `addMark` and `removeMark` so marks can apply to voids. Also changes behavior
of collapsed selection so that if a markable Void is selected, the mark will be applied /
removed.
- Shows how `markableVoid()` can work in the mentions example
2022-11-08 05:38:15 -07:00
Horacio Herrera
0e598ab229 feat(docs): add missing Element methods (#4943) 2022-04-13 10:56:59 -07:00
Doug Reeder
2b94e17874 Documents how to implement a Void Element. (#4924)
* Documents how to implement a Void Element.

* Tightens up phrasing
2022-04-03 16:34:33 -07:00
Doug Reeder
7d9d25e179 Adds clarification & examples to demystify Transforms. (#4653)
* Adds clarification & examples to demystify Transforms.

* Fleshes out documentation of NodeOptions for Transforms

* Update docs/concepts/04-transforms.md

Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>

* Uses 'API' in the title of all API documents

Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
2021-11-16 02:20:43 -07:00
Sunny Hirai
ced37b93c7 docs: Try changing function format to use fat arrow to see how it looks 2021-05-26 00:00:59 -07:00
Sunny Hirai
cf6145dc6e docs: minor grammatical fix 2021-05-25 18:52:36 -07:00
Sunny Hirai
65a1a9e281 docs: rename element configuration to behavior types 2021-05-25 18:50:27 -07:00
Sunny Hirai
a55c4a2e71 docs: organize Editor configuration into headings and subheading 2021-05-25 18:48:11 -07:00
Sunny Hirai
ffbb92f28a docs: Add descriptions and links to describe void/inline and void/not void elements in API 2021-05-25 18:44:12 -07:00
Sunny Hirai
a47c35cd95 merge 2021-04-01 18:13:48 -07:00
Ian Storm Taylor
a38957b849 GitBook: [main] 58 pages and 7 assets modified 2021-04-01 23:20:52 +00:00