Ckeditor 剥离 Base64 图像
Ckeditor Stripping Base64 Images
我在我的 CKEditor 中使用 FMath 编辑器插件,它将方程作为 base64 图像插入,当我保存我的 post 它被正确保存在数据库中,但是当我检索它时从数据库并将其加载到 CKEditor 中,然后它正在剥离 base64 图像。
可能是因为您的 ckeditor 代码不允许 "content"。请按如下方式加载ckeditor:
<script type="text/javascript">
CKEDITOR.replace('note', {
allowedContent: true
});
</script>
我在我的 CKEditor 中使用 FMath 编辑器插件,它将方程作为 base64 图像插入,当我保存我的 post 它被正确保存在数据库中,但是当我检索它时从数据库并将其加载到 CKEditor 中,然后它正在剥离 base64 图像。
可能是因为您的 ckeditor 代码不允许 "content"。请按如下方式加载ckeditor:
<script type="text/javascript">
CKEDITOR.replace('note', {
allowedContent: true
});
</script>