问题描述
我是 ckeditor5 的新手。我想将 html 编辑器包含在这样的 html 表中......但编辑器不再响应! 当我将文本框字段放在表格中时,问题就出现了。
这是我的代码:
<table style="width:100%">
<tr>
<td>
<textarea id="MyEditor"></textarea>
</td>
</tr>
</table>
ClassicEditor
.create( document.querySelector( '#MyEditor' ),{
toolbar: {
items: [
'sourceEditing','findAndReplace','|','undo','redo','bold','italic','underline','removeFormat','heading','fontBackgroundColor','fontColor','fontFamily','fontSize','CKFinder','imageInsert',]
},ckfinder: {
uploadUrl: 'ckfinder/core/connector/asp/connector.asp?command=QuickUpload&type=Files&responseType=json'
}
} )
.then( editor => {
window.editor = editor;
TheEditor1 = editor;
} )
.catch( error => {
console.error( 'Oops,something went wrong!' );
console.error( 'Please,report the following error on https://github.com/ckeditor/ckeditor5/issues with the build id and the error stack trace:' );
console.warn( 'Build id: xxxxx' );
console.error( error );
} );
function getDataFromTheEditor1() {
return TheEditor1.getData();
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)