ckeditor font style 13 px

拜拜、爱过 提交于 2020-01-23 12:54:27

问题


I had earlier asked question about it. But after trying out all the possiblities where the error occurs, I have found that in ckeditor if you copy some text and paste it, it is default pasted as <p style="font-size: 13px;">

example picture

HTML CODE

<div><p>Original Text</p>

<p><strong><u>The quick brown fox jumps over the lazy dog</u></strong></p>

<p>The quick brown fox jumps over the lazy dog</p>

<p>Copied Text</p>

<p style="font-size: 13px;"><strong><u>The quick brown fox jumps over the lazy dog</u></strong></p>

<p style="font-size: 13px;">The quick brown fox jumps over the lazy dog</p>
</div>

So if you know any solution to the above problem please answer me. The problem starts when you copy a text and paste it.I am using ckeditor 4.Latest version.


回答1:


Why isn't nobody answering? I tried using the stable build 4.1.1 also. The problem is still there. What you people do to overcome this error?

See the error in ckeditor 4.1.1

The above one is preview mode. When I save the data in mysql and then retrive it, the style is applied. And so the second Test will be smaller than usual.



来源:https://stackoverflow.com/questions/17657223/ckeditor-font-style-13-px

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!