如何使用 jQuery 服务发送 ckeditor 配置?
我的服务已构建,并将配置变量发送到我的 js 文件: [['SpellChecker','-','Undo','Redo','-','Bold','Italic','Underline','NumberedList','BulletedList']]
上面分配给我的javascript像这样:
var config = "<?= stripslashes($_REQUEST['config']) ?>";
我可以很好地提醒配置: console.log(config)
确实发回了正确的数据...
但是,我的控制台中抛出了一个错误!:
v 未定义 [中断此错误] 变量 u=n.toolbox.toolbars,v=n.config.to...aximize','ShowBlocks','-','关于']];
如果我注释掉配置:
//CKEDITOR.config.toolbar = config;
一切正常,但配置不存在,当然......
My service is built and it is sending the config variable to my js file:
[['SpellChecker','-','Undo','Redo','-','Bold','Italic','Underline','NumberedList','BulletedList']]
The above is assigned to my javascript like so:
var config = "<?= stripslashes($_REQUEST['config']) ?>";
I can alert out the config just fine:console.log(config)
does send back the correct data...
However, I get an error thrown in my console!:
v is undefined [Break On This Error]
var
u=n.toolbox.toolbars,v=n.config.to...aximize','ShowBlocks','-','About']];
If I comment out the config:
//CKEDITOR.config.toolbar = config;
everything works fine but the configuration doesn't exist, of course...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
已修复...噗噗噗噗
FIXED...PFFFFFFFFT