问题描述
CKEditor 4.5 Beta现在应该允许嵌套的小部件。
CKEditor 4.5 Beta now should allow nested widgets.http://ckeditor.com/blog/CKEditor-4.5-Beta-Released
您能帮我找出如何测试嵌套的小部件吗?
我已经下载了4.5 Beta,通过教程中的指令创建了一个SimpleBox小部件(但没有'allowedContent'过滤器)。但我还是不能把一个小部件编辑另一个。
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.
谢谢!
推荐答案
测试嵌套的小部件的最简单的方法是通过检查我为开发目的创建的样例。它从程序包中删除,因此您需要克隆repo。
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
.
这不过是与simplebox一起运行的image2和占位符插件。你也可以检查simplebox里面的simplebox里面simplebox里面的simplebox ...;)
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... ;)
这篇关于CKEditor 4.5将小部件插入其他小部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!