当我点击tinyMCE上的全屏按钮时,它会在新窗口中打开。
所有我现在想要的是在这个新的窗口,其中有tinyMCE在全屏,是在HTML源代码模式下默认。
另外,我希望"html代码编辑“窗口是全屏的。
谢谢!
发布于 2013-01-14 17:08:59
默认情况下,尝试使用此fiddle显示HTML代码
In order to implement it in FullScreen Plugin go to
plugins/fullscreen/fullscreen.htm打开fullscreen.htm并将onload事件添加到body中,如下所示
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.希望它能有所帮助!!
发布于 2013-01-11 18:31:28
全屏按钮将把时间编辑器放大到用户的全屏大小。显示源代码是另一种操作,就像你自己已经发现的那样-- html代码编辑。
要获得全屏大小,您必须调整tinymce html源编辑器的弹出窗口大小。这可以使用以下tinymce配置参数来完成
不幸的是,你只能定义一个固定的宽度和高度。没有将代码弹出窗口放大到全屏大小的选项。
https://stackoverflow.com/questions/14275208
复制相似问题