editorjs-text-color-plugin
editorjs-text-color-plugin copied to clipboard
Font Color markup is not exported on save
Versions:. [email protected] node v12.18.2 "@editorjs/editorjs": "^2.23.2",
Html :
////////////
<div class="ce-paragraph cdx-block" data-placeholder="Start typing here ... Press Tab button for options" contenteditable="true">Testing <font color="red">font color</font> in editor js</div>
//////////////

My environment:
@editorjs/editorjs: "^2.23.2
editorjs-text-color-plugin: "^1.13.1"
Hi, it seems that the latest version of the color plugin works okay on [email protected].

Do you mind to provide more details about how this 'Font Color markup is not exported on save' problem happens? Many thanks!
Okay ,Thank you.
My environment: @editorjs/editorjs: "^2.23.2 editorjs-text-color-plugin: "^1.13.1"
Please check it step wise:- const ColorPlugin = require('editorjs-text-color-plugin');
==================
config Color: {
class: ColorPlugin, // if load from CDN, please try: window.ColorPlugin
config: {
colorCollections: ['#9C27B0','#673AB7','#3F51B5','#0070FF','#03A9F4','#00BCD4','#4CAF50','#8BC34A','#CDDC39', '#FFF'],
defaultColor: '#9C27B0',
type: 'text',
}
},

Hi, I would really like to help, but sorry that it may not be very straightforward for me to spot why this shows up, coz this problem can not be shown with the code I've already got.
But I feel that if the text can be successfully colored, the answer may lie in how/when you store your block data. Maybe pick up a different timing to store the data block will solve this problem?
I will double check the code on how editor.js store the block data, and I will leave a message for you as soon as I have new findings.
Thanks so much!
okay Sure, thank you
any updates ,about this issue?