Open tomdyqin opened 10 months ago
and if text has like bold
or italic
attribute , the color will not strip
@zbeyens can u help this?
I've run into this bug too. After view the source code, I find the code of @udecode/plate-font plugin may cause the issue. Comparing code of @udecode/plate-basic-marks:
export const createBoldPlugin = createPluginFactory<ToggleMarkPlugin>({
key: MARK_BOLD,
isLeaf: true,
...
export const createItalicPlugin = createPluginFactory<ToggleMarkPlugin>({
key: MARK_ITALIC,
isLeaf: true,
...
and
export const createFontColorPlugin = createPluginFactory({
key: MARK_COLOR,
inject: {
props: {
nodeKey: MARK_COLOR,
defaultNodeValue: 'black',
},
},
It seems that the createFontColorPlugin function doesn't treat font color as a leaf element
Same issue here
@zbeyens, could you let me know if this issue occurs in the latest version? I'm currently using version 36.
Not yet fixed
Description
When calling serializeHtml (from @udecode/plate-serializer-html), output will strip with color
Steps to Reproduce
Expected Behavior
output will with color
Environment
Funding