CKEditor内联工具栏位置 [英] CKEditor inline toolbar position

查看:355
本文介绍了CKEditor内联工具栏位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简单的问题:如何使内嵌式CKEditor工具栏浮动在可编辑元素的右上方(或右下角),而不是默认的左上角?

Simple question : how can I make the inline CKEditor toolbar float top right (or bottom right) of my editable element instead of the default top left position ?

谢谢

推荐答案

p>它没有配置选项。在固定和停靠模式下,只有四个选项用于X,Y偏移 - 例如 config.floatSpacePinnedOffsetY

It does not have a configuration option for this. There are only four options for the X,Y offset in pinned and docked modes - e.g. config.floatSpacePinnedOffsetY.

我唯一的想法是实现自己的插件,如浮动空格或修改目前的执行方式。

The only idea that I have is implementing your own plugin like Floating Space, or modifying the current implementation.

作为最后一种手段,您可以使用 Shared Space 插件,将工具栏放置在您选择的容器中,然后根据需要放置它。在SDK示例页面上检查第二个演示(共享工具栏和底部栏的在线编辑器)例如。

And as the last resort, you can use the Shared Space plugin to place the toolbar in a container chosen by you and then position it as you wish. Check the second demo (Inline Editor with Shared Toolbar and Bottom Bar) on the SDK sample page for an example.

这篇关于CKEditor内联工具栏位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆