问题描述
我想添加标题栏,但设置后,标题栏包含h1和p标签,我如何仅添加h1标签,而不添加p标签。
InlineEditor.create(document.querySelector('.input__writing-title'),{,toolbar: [
'heading','alignment','undo','redo'
],alignment: {
options: [ 'left','right' ]
}}).then(editor => {
console.log( 'Editor was initialized',editor );
}).catch( error => {
console.error( error );
} );
结果html:
<div class="input__writing-title ck ck-content ck-editor__editable ck-rounded-corners ck-editor__editable_inline ck-blurred">
<h1 data-placeholder="Type your title"></h1>
<p class="ck-placeholder" data-placeholder="Type your content here."></p>
</div>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)