需求:
想实现在富文本里面按回车 生成的p标签带行内样式
搜索源码里面: <code><br></code>
在var $selectionElem = editor.selection.getSelectionContainerElem();
后面打印$selectionElem
,浏览器展开看到elems字段 继续展开找到style字段进行修改就行了。
xxxxxx.style.lineHeight='1.6'
需求:
想实现在富文本里面按回车 生成的p标签带行内样式
搜索源码里面: <code><br></code>
在var $selectionElem = editor.selection.getSelectionContainerElem();
后面打印$selectionElem
,浏览器展开看到elems字段 继续展开找到style字段进行修改就行了。
xxxxxx.style.lineHeight='1.6'