@udecode/plate-font
Advanced tools
Comparing version 8.1.0 to 8.3.0
# @udecode/plate-font | ||
## 8.3.0 | ||
### Minor Changes | ||
- [#1266](https://github.com/udecode/plate/pull/1266) by [@zbeyens](https://github.com/zbeyens) – | ||
- font plugins are now deserializable to HTML | ||
- `defaultNodeValue` of font color plugin is now `'black'` | ||
## 8.1.0 | ||
@@ -4,0 +12,0 @@ |
@@ -15,2 +15,3 @@ import { createPluginFactory } from '@udecode/plate-core'; | ||
deserializeHtml: { | ||
isLeaf: true, | ||
getNode: element => ({ | ||
@@ -31,3 +32,4 @@ [type]: element.style.backgroundColor | ||
props: { | ||
nodeKey: MARK_COLOR | ||
nodeKey: MARK_COLOR, | ||
defaultNodeValue: 'black' | ||
} | ||
@@ -68,2 +70,3 @@ }, | ||
deserializeHtml: { | ||
isLeaf: true, | ||
getNode: element => ({ | ||
@@ -91,2 +94,3 @@ [type]: element.style.fontFamily | ||
deserializeHtml: { | ||
isLeaf: true, | ||
getNode: element => ({ | ||
@@ -114,2 +118,3 @@ [type]: element.style.fontSize | ||
deserializeHtml: { | ||
isLeaf: true, | ||
getNode: element => ({ | ||
@@ -116,0 +121,0 @@ [type]: element.style.fontWeight |
@@ -19,2 +19,3 @@ 'use strict'; | ||
deserializeHtml: { | ||
isLeaf: true, | ||
getNode: element => ({ | ||
@@ -35,3 +36,4 @@ [type]: element.style.backgroundColor | ||
props: { | ||
nodeKey: MARK_COLOR | ||
nodeKey: MARK_COLOR, | ||
defaultNodeValue: 'black' | ||
} | ||
@@ -72,2 +74,3 @@ }, | ||
deserializeHtml: { | ||
isLeaf: true, | ||
getNode: element => ({ | ||
@@ -95,2 +98,3 @@ [type]: element.style.fontFamily | ||
deserializeHtml: { | ||
isLeaf: true, | ||
getNode: element => ({ | ||
@@ -118,2 +122,3 @@ [type]: element.style.fontSize | ||
deserializeHtml: { | ||
isLeaf: true, | ||
getNode: element => ({ | ||
@@ -120,0 +125,0 @@ [type]: element.style.fontWeight |
{ | ||
"name": "@udecode/plate-font", | ||
"version": "8.1.0", | ||
"version": "8.3.0", | ||
"description": "Font plugins for Plate", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@udecode/plate-core": "8.1.0" | ||
"@udecode/plate-core": "8.3.0" | ||
}, | ||
@@ -38,0 +38,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
27986
265
+ Added@udecode/plate-core@8.3.0(transitive)
- Removed@udecode/plate-core@8.1.0(transitive)
Updated@udecode/plate-core@8.3.0