问题
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