I have used ckeditor with php but it is showing html entities such as line breaks and anchor tag as plain text. I have seen other links and made changes in the config of the ckeditor but it is not working.
Hello,<br>Please join me <a href='https://.........'>link</a>
My config:
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');
希望您直接显示值,如果不是,请使用@Html.Raw(value)
。
<textarea id="email_content" name="email_content">@Html.Raw(value)</textarea>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.