python - 在 django 中,如何在 CKEditorUploadingWidget 中插入 ckeditor 值并将其显示在模板中?
问题描述
我应该怎么做才能在ckeditor上传小部件中插入html内容?我的数据库字段中已经有 html 内容,我正在尝试创建 UpdateView 页面并在 ckeditor 中插入 html 内容。
我在表单中使用 CKEditorUploadingWidget 但我不知道如何插入 html 内容
django-ckeditor==6.1.0
Django==3.2.6
蟒蛇 3.9
解决方案
推荐阅读
- html - 如何在 SPA 中设计在页面刷新时保留的选项卡?
- sql - 将 PSQL VIEWs 定义保存到 .sql 文件
- python - 如何在 PyQt5 中同时读取和写入文件时正确执行多线程?
- php - PHP中的数据加密
- android - 如何在没有多项目的情况下使用 Android Gradle
- visual-studio - MSBuild 属性设置为从未定义的值(缓存?)
- http - 是否允许符合标准 (RFC 7230) 的 HTTP 服务器仅响应 400 错误请求?
- php - Laravel 8 传递多个参数来查看
- beautifulsoup - 提取 HTML 标签 Beautifulsoup
- database-design - DynamoDB - 间接多对多关系