css - 百度Ueditor富文本编辑器初始化赋值font-size没有值?
怪我咯
怪我咯 2017-04-17 14:35:37
0
3
974

就是这样,从后台获取数据,赋值给编辑器,但是在编辑器里那些style的line-height等的值都无法传进去,后台发来的数据是有的,有大神知道是什么原因吗?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(3)
Peter_Zhu

Just configure the whitelist

Peter_Zhu
var data = '<p style="line-height: 2;font-size:20px">123</p>'
UE.getEditor('editor').setContent(data);

Is this the way to pass the value? I tried it and found that there is no problem

PHPzhong

Thank you for the invitation, you can find it on Baidu
http://www.cnblogs.com/Olive1...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template