CKEditor 4.5 insert widget into other widget

别说谁变了你拦得住时间么 提交于 2019-12-02 13:03:13

问题


CKEditor 4.5 Beta now should allow nested widgets. http://ckeditor.com/blog/CKEditor-4.5-Beta-Released

Can you help me to figure out how can I test nested widgets? I've downloaded 4.5 Beta, created a SimpleBox widget by instructions in tutorial (but without 'allowedContent' filters). But I still cannot put one widget inside editable of another. Can you clarify what I'm doing wrong or point me to correct example.

Thank you!


回答1:


The easiest way to test nested widgets will be by checking a sample that I created for development purposes. It's stripped from the packages, so you will need to clone the repo.

git clone https://github.com/ckeditor/ckeditor-dev.git
git co major

And then see this file: ckeditor-dev/plugins/widget/dev/nestedwidgets.html.

It's nothing more than the image2 and placeholder plugins running together with the simplebox. You can also check simplebox inside simplebox inside simplebox inside simplebox... ;)



来源:https://stackoverflow.com/questions/29816581/ckeditor-4-5-insert-widget-into-other-widget

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