django-cms 如何更改 wisiwyg 编辑器以使用 aloha 编辑器?
我想知道是否可以将 django-cms 文本插件的 wisiwyg 更改为 aloha 编辑器...我搜索但找不到如何执行此操作...另一个选项是创建自定义插件文本它使用 aloha 编辑器,但这样做我不知道如何定义这个插件的内联编辑。 有什么帮助吗?
I wonder if I can change the wisiwyg of the text plugin of django-cms to be the aloha editor ... I search but I couldn't found how to do this .... The other option is to create a custom plugin text which use aloha editor but doing this I don't know how to define the in-line editing of this plugin.
Any help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试使用预先构建的 django 集成包来实现 aloha: https://pypi.python .org/pypi/django-aloha-edit,
然后使用 HTMLField,或者简单地使用 AlohaWidget 并指定后端。 HTMLField 起到了重要的作用,但如果您仅使用受信任的用户从后端进行编辑,则没有必要,您只需覆盖表单中的小部件即可。
You might try using a pre-built django integration package for aloha: https://pypi.python.org/pypi/django-aloha-edit,
Then use the HTMLField, or simply use the AlohaWidget and specify the backend. The HTMLField does important sanitation, but if you're only editing from the backend with trusted users this is not necessary, and you can just override the widget in the form.