如何让ckeditor 初始化为全屏显示

zyang198811 2011-03-17 10:47:23
现在ckeditor 加载完 点击全屏按钮才可以全屏,如何在页面加载时就全屏显示
1,是在config.js 配置么,具体如何配置?
2,还是要手动修改源代码?
求各位能人支招,严重谢过!
...全文
712 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
zyang198811 2011-04-01
  • 打赏
  • 举报
回复
自己贴上解决方案,供遇到的人参考:
<script type="text/javascript">
var oCKeditor;
(function () {
oCKeditor = CKEDITOR.replace('editor1');
oCKeditor.on('instanceReady', function (event) {
var editor = event.editor;
setTimeout(function () {
// Delay bit more if editor is still not ready.
if (!editor.element) {
setTimeout(arguments.callee, 100);
return;
}
event.removeListener('instanceReady', this.callee);
if (editor.name == 'editor1') {
var command = editor.getCommand('maximize');
command.exec();
}
}, 0);
}, null, null, 9999);
})();
</script>
zyang198811 2011-03-18
  • 打赏
  • 举报
回复
没人知道么? config.js 我里面没有查到
kaifadi 2011-03-17
  • 打赏
  • 举报
回复
真正意义的显示器全屏好象不行,好象是config.js,你可以查一下ckeditor手册介绍!

87,997

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧