editorjs-text-color-plugin icon indicating copy to clipboard operation
editorjs-text-color-plugin copied to clipboard

Font Color markup is not exported on save

Open Abdul-develop opened this issue 3 years ago • 6 comments

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> ////////////// image 4225761

Abdul-develop avatar May 16 '22 05:05 Abdul-develop

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].
Screen Shot 2022-05-16 at 3 27 21 PM

Do you mind to provide more details about how this 'Font Color markup is not exported on save' problem happens? Many thanks!

flaming-cl avatar May 16 '22 07:05 flaming-cl

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', }
},

image

Abdul-develop avatar May 20 '22 21:05 Abdul-develop

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!

flaming-cl avatar May 22 '22 02:05 flaming-cl

okay Sure, thank you

Abdul-develop avatar May 22 '22 08:05 Abdul-develop

Abdul-develop avatar May 22 '22 08:05 Abdul-develop

any updates ,about this issue?

Abdul-develop avatar May 29 '22 09:05 Abdul-develop