Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

text highlight is not working properly while Copy-paste from word to CKEditor

I am trying to copy paste some text from my word document. First I was not getting font styles. I have changed the

config.pasteFromWordRemoveFontStyles=false;
config.pasteFromWordRemoveStyles=false;

Now font family, size, color is working fine but the highlighted text background color is not coming. How to make it.

like image 255
Sathesh S Avatar asked Jan 27 '26 21:01

Sathesh S


1 Answers

Finally i have got the answer.

config.allowedContent=true; 

We have to give this configuration also to get the highlighted text while copy pasting from the word.

like image 86
Sathesh S Avatar answered Jan 29 '26 13:01

Sathesh S



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!