📄 imestandalone.js
字号:
/**
* The ImageManager plugin javascript.
* @author $Author: hoping $
* @version $Id: IMEStandalone.js,v 1.1 2005/05/31 17:46:06 hoping Exp $
* @package ImageManager
*/
//Translation unit.
var I18N;
/**
* This is the ImageManager constructor.
* manager_url is where this script is.
* lang is the lanaguage file you wish to use.
*/
function ImageManager(manager_url,lang)
{
var plugin_lang = manager_url + "/lang/" + lang + ".js";
this.url = manager_url + '/manager.php';
document.write("<script type='text/javascript' src='" + plugin_lang + "'></script>");
I18N = ImageManager.I18N;
};
ImageManager._pluginInfo = {
name : "ImageManager Stand Alone",
version : "1.0",
developer : "Xiang Wei Zhuo",
developer_url : "http://www.zhuo.org/htmlarea/",
license : "htmlArea"
};
//Call this to popup the Image Manager and Editor.
//updater is an object with a update method that accepts
//an array of parameters.
//The returned parameters are
//param.f_url, param.f_file, param.f_alt,
//param.f_border, param.f_align, param.f_vert, param.f_horiz,
//param.f_width, param.f_height
ImageManager.prototype.popManager = function(updater)
{
this._insertImage(updater);
}
// Open up the ImageManger script.
// when the dialog returns, if there are parameters
// then updater.update is called with the parameters
ImageManager.prototype._insertImage = function(updater) {
var manager = this; // for nested functions
Dialog(manager.url, function(param) {
if (!param) { // user must have pressed Cancel
return false;
}
else
{
if(updater && typeof updater.update != 'undefined')
updater.update(param);
}
}, null);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -