我在 ckeditor JS 中遇到一个问题
var msg="hello world ";
var editor = CKEDITOR.replace("editor");
editor.setData ('<p> msg <p>');
在html中它只显示“msg”,但我只想显示“hello world”, 我能做什么?
最佳答案
editor.setData ('<p>' + msg + '<p>');
但实际上,我认为在学习如何使用 CKEditor 等特定程序之前,学习 JavaScript 基础知识可能会让您受益更多。恐怕这是非常非常基本的东西。
关于javascript - CKeditor 显示 JS 范围,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16240090/