| 1 |
var align;
|
| 2 |
var width;
|
| 3 |
var height;
|
| 4 |
|
| 5 |
function preinit() {
|
| 6 |
tinyMCE.setWindowArg('mce_windowresize', false);
|
| 7 |
tinyMCE.setWindowArg('mce_replacevariables', false);
|
| 8 |
}
|
| 9 |
|
| 10 |
function initLoader() {
|
| 11 |
}
|
| 12 |
|
| 13 |
function initProperties() {
|
| 14 |
}
|
| 15 |
|
| 16 |
function insertToEditor() {
|
| 17 |
var content = $("#edit-macro").val();
|
| 18 |
if(!content){
|
| 19 |
return false;
|
| 20 |
}
|
| 21 |
content = window.opener.TinyMCE_DrupalAssetPlugin.cleanup('insert_to_editor',content);
|
| 22 |
// Insert the image
|
| 23 |
tinyMCE.execCommand("mceInsertContent", true, content);
|
| 24 |
tinyMCE.selectedInstance.repaint();
|
| 25 |
|
| 26 |
// Close the dialog
|
| 27 |
tinyMCEPopup.close();
|
| 28 |
return false;
|
| 29 |
}
|
| 30 |
|
| 31 |
function cancelAction() {
|
| 32 |
// Close the dialog
|
| 33 |
tinyMCEPopup.close();
|
| 34 |
}
|
| 35 |
|
| 36 |
// While loading
|
| 37 |
preinit();
|