CKEditor inline toolbar position

前端 未结 2 995
天涯浪人
天涯浪人 2021-02-14 18:49

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 ?

Have bee

相关标签:
2条回答
  • 2021-02-14 19:35

    we can do it with floatSpacePreferRight config

    only we need to set

    config.floatSpacePreferRight = true;
    

    default value of floatSpacePreferRight is false;

    so with this configuration, we can align inline toolbar position to right

    0 讨论(0)
  • 2021-02-14 19:36

    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.

    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.

    0 讨论(0)
提交回复
热议问题