This commit is contained in:
joyqi
2013-10-26 11:56:39 +08:00
parent 054739c406
commit 7fe581464d
5 changed files with 6 additions and 745 deletions
+1
View File
@@ -43,6 +43,7 @@ $(document).ready(function () {
fullscreen: '<?php _e('全屏'); ?> - Ctrl+M',
exitFullscreen: '<?php _e('退出全屏'); ?> - Ctrl+M',
fullscreenUnsupport: '<?php _e('此浏览器不支持全屏操作'); ?>',
imagedialog: '<p><b><?php _e('插入图片'); ?></b></p><p><?php _e('请在下方的输入框内输入要插入的远程图片地址'); ?></p><p><?php _e('您也可以使用编辑器下方的文件上传功能插入本地图片'); ?></p>',
linkdialog: '<p><b><?php _e('插入链接'); ?></b></p><p><?php _e('请在下方的输入框内输入要插入的链接地址'); ?></p>',
+5 -2
View File
@@ -3069,6 +3069,7 @@ else
fullscreen: 'FullScreen Ctrl+M',
exitFullscreen: 'Exit FullScreen Ctrl+M',
fullscreenUnsupport: 'Sorry, the browser dont support fullscreen api',
hr: "Horizontal Rule <hr> Ctrl+R",
@@ -3181,7 +3182,7 @@ else
}
}
fullScreenManager = new FullScreenManager(hooks);
fullScreenManager = new FullScreenManager(hooks, getString);
uiManager = new UIManager(idPostfix, panels, undoManager, previewManager, commandManager, fullScreenManager, options.helpButton, getString);
uiManager.setUndoRedoButtonStates();
@@ -5290,9 +5291,10 @@ else
chunk.selection = "";
}
function FullScreenManager (hooks) {
function FullScreenManager (hooks, getString) {
this.fullScreenBind = false;
this.hooks = hooks;
this.getString = getString;
}
function getFullScreenAdapter () {
@@ -5334,6 +5336,7 @@ else
var adapter = getFullScreenAdapter(), self = this;
if (!adapter) {
alert(self.getString('fullscreenUnsupport'));
return false;
}