【发布时间】:2015-10-27 18:29:12
【问题描述】:
如何使编辑器工具栏位于上方?我使用内联编辑,如果在页面结束之前滚动站点,工具栏会向下传递。
【问题讨论】:
标签: ckeditor
如何使编辑器工具栏位于上方?我使用内联编辑,如果在页面结束之前滚动站点,工具栏会向下传递。
【问题讨论】:
标签: ckeditor
使用sharedspace 可以帮助您。 您可以在此处找到类似的问题和解决方案: How to make the inline ckeditor toolbar fixed at the top and not float
插件的实现如下所示:
<div id="toolbarLocation></div>
<div id="editor" contenteditable="true"></div>
<script>
CKEDITOR.disableAutoInline = true;
CKEDITOR.replace( 'editor', {
sharedSpaces: {
top: 'toolbarLocation'
}
} );
</script>
【讨论】: