当我在 tinyMCE 上单击全屏按钮时,它会在新窗口中打开。
我现在想要的只是在这个全屏显示 tinyMCE 的新窗口中,默认情况下处于 HTML 源代码模式。
另外,我希望“html代码编辑”窗口全屏显示。
谢谢!
最佳答案
尝试关注这个 fiddle用于默认显示 HTML 代码
In order to implement it in FullScreen Plugin go to
plugins/fullscreen/fullscreen.htm
打开fullscreen.htm 并添加onload 事件到body like
onload="setTimeout(tinyMCE.activeEditor.execCommand('mceCodeEditor'),200)"
为了全屏“html代码编辑”
Go to themes/advanced/editor_template.js
定位
width : parseInt(ed.getParam("theme_advanced_source_editor_width", 720)),
height : parseInt(ed.getParam("theme_advanced_source_editor_height", 580)),
replace 720 and 580 by screen.availWidth, screen.availHeight respectively.
Also clear your browser cache.
希望对您有所帮助!
关于javascript - tinyMCE 在全屏模式下默认显示 HTML 代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14275208/