简体   繁体   中英

CKEditor not correctly apply span tags

I use CKEditor 4 and have this problem:

This occurs when the web page opened and editor field is empty.

We simply enter the text without any changes in style(font and etc), but default font and size does not applying. So result will be

<html>some text</html>

instead of something like this

<html><span style="font-family: courier; font-size: 10pt">some text</span></html>

If the ckeditor opened with some ready text in it everything is ok.
How can we make that when ckeditor field is empty the default fonts will be applied automatically?

innerhtml will remove the styles.

Change like for ex. <div id="changehere" [innerHTML]="changehere"></div>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM