我在php中使用了ckeditor,但它将html实体(如换行和锚标记)显示为纯文本。我已经看到了其他链接,并在ckeditor的配置中做了一些更改,但是它不起作用。
Hello,<br>Please join me <a href='https://.........'>link</a> 我的配置:
CKEDITOR.editorConfig = function (config) {
config.enterMode = CKEDITOR.ENTER_P;
config.language = 'es';
config.uiColor = '#F7B42C';
config.height = 300;
config.toolbarCanCollapse = true;
config.allowedContent = true;
config.entities = true;
config.ignoreEmptyParagraph = false;
};
CKEDITOR.replace('email_content');发布于 2019-09-11 07:55:08
希望您正在显示值directly.If,所以不要使用@Html.Raw(value)。
<textarea id="email_content" name="email_content">@Html.Raw(value)</textarea>https://stackoverflow.com/questions/57884387
复制相似问题