📄 external-editor.js
字号:
// External Editor plugin for HTMLArea
// Implementation by Jeroen Reijn and Jasha Joachimsthal
//
// (c) Hippo 2008
// Distributed under the Apache License 2.0
function ExternalEditor(editor) {
this.editor = editor;
var cfg = editor.config;
var self = this;
cfg.registerButton({
id : "ExternalEditor",
tooltip : this._lc("Open current editor in new window"),
image : editor.imgURL("fullscreen_maximize.gif", "ExternalEditor"),
textMode : false,
action : function(editor) {
self.buttonPress(editor);
}
});
cfg.addToolbarElement("ExternalEditor", "popupeditor", 0);
}
ExternalEditor._pluginInfo = {
name : "ExternalEditor",
version : "1.0",
developer : "Jeroen Reijn, Jasha Joachimsthal",
developer_url : "",
sponsor : "Hippo",
sponsor_url : "http://www.hippo.nl",
license : "Apache 2.0"
};
ExternalEditor.prototype._lc = function(string) {
return HTMLArea._lc(string, 'ExternalEditor');
};
ExternalEditor.prototype.buttonPress = function(editor) {
outparam = {
};
html=" ";
window.open(editor.popupURL("external_editor.html"), "ha_fullscreen",
"toolbar=no,location=no,directories=no,status=no,menubar=no," +
"scrollbars=no,resizable=yes,width=800,height=600");
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -