首页 > 解决方案 > 在 django 中,如何在 CKEditorUploadingWidget 中插入 ckeditor 值并将其显示在模板中?

问题描述

我应该怎么做才能在ckeditor上传小部件中插入html内容?我的数据库字段中已经有 html 内容,我正在尝试创建 UpdateView 页面并在 ckeditor 中插入 html 内容。

我在表单中使用 CKEditorUploadingWidget 但我不知道如何插入 html 内容

django-ckeditor==6.1.0

Django==3.2.6

蟒蛇 3.9

我的代码(表格)

我的 html 模板

我的模板代码

我的更新视图

标签: pythondjangockeditor

解决方案


推荐阅读