-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3943 from udecode/import/html
Import HTML exported by PlateStatic.
- Loading branch information
Showing
61 changed files
with
1,303 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
'@udecode/plate-indent-list': patch | ||
'@udecode/plate-line-height': patch | ||
'@udecode/plate-code-block': patch | ||
'@udecode/plate-comments': patch | ||
'@udecode/plate-layout': patch | ||
'@udecode/plate-media': patch | ||
'@udecode/plate-table': patch | ||
'@udecode/plate-docx': patch | ||
--- | ||
|
||
Support deserialization from PlateStatic. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
'@udecode/plate-core': patch | ||
--- | ||
|
||
`editor.api.html.deserialize`: Support deserialization from PlateStatic. | ||
|
||
New: `getEditorDOMFromHtmlString` returns the editor element in html string (the one with `data-slate-editor="true"`). | ||
|
||
New utilities for checking Slate nodes in HTML: | ||
- `isSlateVoid`: Check if an HTML element is a Slate void node | ||
- `isSlateElement`: Check if an HTML element is a Slate element node | ||
- `isSlateString`: Check if an HTML element is a Slate string node | ||
- `isSlateLeaf`: Check if an HTML element is a Slate leaf node | ||
- `isSlateNode`: Check if an HTML element is any type of Slate node | ||
- `isSlatePluginElement`: Check if an HTML element is a Slate element node with a specific plugin key | ||
- `isSlatePluginNode`: Check if an HTML element has a specific plugin key class | ||
- `getSlateElements`: Get all Slate element nodes in an HTML element |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.