29 lines
784 B
JavaScript
29 lines
784 B
JavaScript
|
/* Import plugin specific language pack */
|
||
|
tinyMCE.importPluginLanguagePack('advimage', 'en,de,sv,zh_cn,cs,fa,fr_ca,fr');
|
||
|
|
||
|
/**
|
||
|
* Insert image template function.
|
||
|
*/
|
||
|
function TinyMCE_advimage_getInsertImageTemplate() {
|
||
|
var template = new Array();
|
||
|
|
||
|
template['file'] = '../../plugins/advimage/image.htm';
|
||
|
template['width'] = 380;
|
||
|
template['height'] = 380;
|
||
|
|
||
|
// Language specific width and height addons
|
||
|
template['width'] += tinyMCE.getLang('lang_insert_image_delta_width', 0);
|
||
|
template['height'] += tinyMCE.getLang('lang_insert_image_delta_height', 0);
|
||
|
|
||
|
return template;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Setup content function.
|
||
|
*/
|
||
|
function TinyMCE_advimage_handleEvent(editor_id, body, doc) {
|
||
|
// Convert all links to absolute
|
||
|
|
||
|
alert(editor_id + "," + body.innerHTML);
|
||
|
}
|