mirror of
https://github.com/friendica/friendica
synced 2025-04-22 00:30:10 +00:00
bug #96 move libraries to library - better alignment of like rotator
This commit is contained in:
parent
60caa03494
commit
0b221e8945
397 changed files with 30 additions and 30 deletions
19
library/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
vendored
Normal file
19
library/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
tinyMCEPopup.requireLangPack();
|
||||
|
||||
var ExampleDialog = {
|
||||
init : function() {
|
||||
var f = document.forms[0];
|
||||
|
||||
// Get the selected contents as text and place it in the input
|
||||
f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'});
|
||||
f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg');
|
||||
},
|
||||
|
||||
insert : function() {
|
||||
// Insert the contents from the input into the document
|
||||
tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value);
|
||||
tinyMCEPopup.close();
|
||||
}
|
||||
};
|
||||
|
||||
tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog);
|
Loading…
Add table
Add a link
Reference in a new issue