mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-19 06:35:03 +01:00
* Add base tests for isVoid with around text node * Ensure that void nodes are surrounded by text nodes in Node.normalize * Only wrap inline void nodes with text * Fix indentation * Add emojis example * Adapt unit test "transforms/fixtures/at-current-range/set-inline/with-is-void" * Adapt unit test "transforms/fixtures/at-current-range/insert-inline/with-inline" * Adapt unit test "transforms/fixtures/at-current-range/insert-inline/block-start" * add passing parent to leaf nodes, for rendering breaks * add zero-width spaces in empty text nodes, to allow selections * add zero-width space handling to copy/cut * fix delete handling around inline void nodes * fix tests for inline void nodes * fix style * fix void cursor handling across browsers * fix void rendering tests
Emojis Example
This example shows you how you can insert inline void nodes. This is how you'd add emojis or inline images to Slate.
Check out the Examples readme to see how to run it!