django-cms 如何更改 wisiwyg 编辑器以使用 aloha 编辑器?

发布于 2024-12-28 01:58:50 字数 134 浏览 2 评论 0原文

我想知道是否可以将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦与时光遇 2025-01-04 01:58:50

您可以尝试使用预先构建的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文