在CKEditor中,如何将缩进元素从“ div”更改为“ span”

时间:2018-08-23 21:31:28

标签: javascript html css ckeditor

CK编辑器允许您更改缩进的单位和偏移量,但不允许您更改用于包裹文本范围的元素('div')。在这种情况下,我希望使用<span>不是<div>

<div id="TextPage1Title" class="out textbox TextPage1Title editable cke_editable cke_editable_inline cke_contents_ltr cke_focus cke_show_borders" style="width: 730px; background-color: transparent; color: rgb(134, 137, 141); font-size: 28px; word-wrap: break-word; overflow: visible; position: relative;" htmltemplatetag="TextPage1Title" locked="false" fontstylesarray="[]" styleeditableby="" data-urlpoptop="" data-urlpopleft="" contenteditable="true" tabindex="0" spellcheck="false" role="textbox" aria-describedby="cke_434">
  <div style="margin-left: 40px;">
    <span style="color: #86898D; font-size: 28px; word-wrap: break-word;">
      <span>Title text goes <strong>here more text</strong></span>
    </span>
  </div>
</div>

0 个答案:

没有答案