CKEDITOR toolbar is not showing up fully

只谈情不闲聊 提交于 2019-12-20 07:16:47

问题


I am getting a weird behavior using CKEDITOR with Rails, I tried both of those gems : ckeditor gem and ckeditor_rails gem in different app I have (Rails v4.2.0 and with Rails v4.2.1 and Rails v4.2.2)

I have a text with id="ck"

<p contenteditable="true" id="ck">some dummy text</p>

and I am using the inline editing option

$(document).ready(function(){
    CKEDITOR.disableAutoInline = true;
    CKEDITOR.inline("ck");
});

In my Rails 4.2.1 and 4.2.2 I noticed that the toolbar does not show all buttons, while it show all buttons (I mean full toolbar) for my Rails 4.2.0

So my hypotheses was that there are maybe some bugs within the the last versions of rails... so I created a new gemset and I installed Rails 4.2.0 to see if it will still work, but it doesn't !

I am not sure what's wrong... I hope I can get some help


回答1:


For those who land up on this page searching for an answer. The plugin needs to be used on a div element and not on a p element; here is the same issue with Tinymce Tinymce align text buttons don't work on inline editing

thanks for pointing me to here bro.



来源:https://stackoverflow.com/questions/31055735/ckeditor-toolbar-is-not-showing-up-fully

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!