获取 CKEditor 内容? - jQuery
我的 CKEditor 代码是
window.onload = function()
{
var editor = CKEDITOR.replace( \'big_info\' );
CKEDITOR.config.height = \'330px\';
CKEDITOR.config.toolbar_Full =
[
[\'Source\',\'-\',\'Templates\'],
[\'Maximize\', \'ShowBlocks\'],
[\'Cut\',\'Copy\',\'Paste\',\'PasteText\',\'PasteFromWord\',\'-\',\'SpellChecker\', \'Scayt\'],
[\'Undo\',\'Redo\',\'-\',\'Find\',\'Replace\',\'-\',\'SelectAll\',\'RemoveFormat\'],
[\'TextColor\',\'BGColor\'],
[\'NumberedList\',\'BulletedList\',\'-\',\'Outdent\',\'Indent\',\'Blockquote\'],
\'/\',
[\'Bold\',\'Italic\',\'Underline\',\'Strike\',\'-\'],
[\'Styles\',\'Format\',\'Font\',\'FontSize\'],
[\'JustifyLeft\',\'JustifyCenter\',\'JustifyRight\',\'JustifyBlock\'],
[\'Link\',\'Unlink\',\'Anchor\'],
[\'Image\',\'Flash\',\'Table\',\'HorizontalRule\',\'PageBreak\']
];
CKFinder.SetupCKEditor( editor, { BasePath : \'/javascript/ckfinder/\', RememberLastFolder : false } ) ;
};
我想获取编辑框的内容并通过 jQuery 脚本中的 JSON 发送它。我找不到怎么办。
My CKEditor code is
window.onload = function()
{
var editor = CKEDITOR.replace( \'big_info\' );
CKEDITOR.config.height = \'330px\';
CKEDITOR.config.toolbar_Full =
[
[\'Source\',\'-\',\'Templates\'],
[\'Maximize\', \'ShowBlocks\'],
[\'Cut\',\'Copy\',\'Paste\',\'PasteText\',\'PasteFromWord\',\'-\',\'SpellChecker\', \'Scayt\'],
[\'Undo\',\'Redo\',\'-\',\'Find\',\'Replace\',\'-\',\'SelectAll\',\'RemoveFormat\'],
[\'TextColor\',\'BGColor\'],
[\'NumberedList\',\'BulletedList\',\'-\',\'Outdent\',\'Indent\',\'Blockquote\'],
\'/\',
[\'Bold\',\'Italic\',\'Underline\',\'Strike\',\'-\'],
[\'Styles\',\'Format\',\'Font\',\'FontSize\'],
[\'JustifyLeft\',\'JustifyCenter\',\'JustifyRight\',\'JustifyBlock\'],
[\'Link\',\'Unlink\',\'Anchor\'],
[\'Image\',\'Flash\',\'Table\',\'HorizontalRule\',\'PageBreak\']
];
CKFinder.SetupCKEditor( editor, { BasePath : \'/javascript/ckfinder/\', RememberLastFolder : false } ) ;
};
I want to take the content of the edit box and send it via JSON from my jQuery script. I can't find how do to it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
集成指南对此进行了解释。
您还可以使用 jQuery 集成,如中所述CKEditor 博客 和 jQuery 集成文档
This is explained in the integration Guide
You can use also the jQuery integration as explained in the CKEditor blog and jQuery integration docs