Home  >  Q&A  >  body text

css - 百度Ueditor富文本编辑器初始化赋值font-size没有值?

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

怪我咯怪我咯2742 days ago918

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 14:37:37

    Just configure the whitelist

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 14:37:37

    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

    reply
    0
  • PHPz

    PHPz2017-04-17 14:37:37

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

    reply
    0
  • Cancelreply