Software: Apache/2.2.22 (Debian). PHP/5.6.36 uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) Safe-mode: OFF (not secure) /home/h33678/data/www/old.zt-rada.gov.ua/modules-alien/ckeditor1/plugins/MediaEmbed/ drwxr-xr-x |
Viewing file: Select action/file-type: /* * @example An iframe-based dialog with custom button handling logics. */ ( function() { CKEDITOR.plugins.add( 'MediaEmbed', { requires: [ 'iframedialog' ], init: function( editor ) { var me = this; CKEDITOR.dialog.add( 'MediaEmbedDialog', function (editor) { return { title : 'Embed Media Dialog', minWidth : 550, minHeight : 200, contents : [ { id : 'iframe', label : 'Embed Media', expand : true, elements : [ { type : 'html', id : 'pageMediaEmbed', label : 'Embed Media', style : 'width : 100%;', html : '<iframe src="'+me.path+'/dialogs/mediaembed.html" frameborder="0" name="iframeMediaEmbed" id="iframeMediaEmbed" allowtransparency="1" style="width:100%;margin:0;padding:0;"></iframe>' } ] } ], onOk : function() { for (var i=0; i<window.frames.length; i++) { if(window.frames[i].name == 'iframeMediaEmbed') { var content = window.frames[i].document.getElementById("embed").value; } } final_html = 'MediaEmbedInsertData|---' + escape('<div class="media_embed">'+content+'</div>') + '---|MediaEmbedInsertData'; editor.insertHtml(final_html); updated_editor_data = editor.getData(); clean_editor_data = updated_editor_data.replace(final_html,'<div class="media_embed">'+content+'</div>'); editor.setData(clean_editor_data); } }; } ); editor.addCommand( 'MediaEmbed', new CKEDITOR.dialogCommand( 'MediaEmbedDialog' ) ); editor.ui.addButton( 'MediaEmbed', { label: 'Embed Media', command: 'MediaEmbed', icon: this.path + 'images/icon.gif' } ); } } ); } )(); |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0123 ]-- |