Advertisement
hamzaalloush

plugin.diff

May 16th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.47 KB | None | 0 0
  1. --- old.mediadrop/yui/build/moodle-atto_mediadrop-button/moodle-atto_mediadrop-button-min.js    2015-08-16 04:13:26.000000000 +0300
  2. +++ mediadrop/yui/build/moodle-atto_mediadrop-button/moodle-atto_mediadrop-button-min.js    2016-05-12 16:28:32.160052000 +0300
  3. @@ -1 +1 @@
  4. -YUI.add("moodle-atto_mediadrop-button",function(e,t){e.namespace("M.atto_mediadrop").Button=e.Base.create("button",e.M.editor_atto.EditorPlugin,[],{_dialogue:!1,initializer:function(){this.addButton({icon:"icon",iconComponent:"atto_mediadrop",callback:this._displayDialogue});var e=this;document.addEventListener("atto_mediadrop_video_chosen",function(t){e._dialogue.hide(),e._insertContent(t.detail.url,t.detail.title)})},_displayDialogue:function(){this._dialogue=this.getDialogue({headerContent:"MediaDrop",width:"800px",focusAfterHide:!0});var t=e.Node.create("<iframe></iframe>");t.setStyles({height:"600px",border:"none",width:"100%"}),t.setAttribute("src",this._getIframeURL()),this._dialogue.set("bodyContent",t).show()},_getIframeURL:function(){return M.cfg.wwwroot+"/lib/editor/atto/plugins/mediadrop/popup/"},_insertContent:function(e,t){var n='<a href="'+e+'">'+t+"</a>";this.editor.focus(),this.get("host").insertContentAtFocusPoint(n),this.markUpdated()}})},"@VERSION@",{requires:["moodle-editor_atto-plugin"]});
  5. +YUI.add("moodle-atto_mediadrop-button",function(e,t){e.namespace("M.atto_mediadrop").Button=e.Base.create("button",e.M.editor_atto.EditorPlugin,[],{_dialogue:!1,initializer:function(){this.addButton({icon:"icon",iconComponent:"atto_mediadrop",callback:this._displayDialogue});var e=this;document.addEventListener("atto_mediadrop_video_chosen",function(t){e._dialogue.hide(),e._insertContent(t.detail.url,t.detail.title)})},_displayDialogue:function(){this._dialogue=this.getDialogue({headerContent:"MediaDrop",width:"800px",focusAfterHide:!0});var t=e.Node.create("<iframe></iframe>");t.setStyles({height:"600px",border:"none",width:"100%"}),t.setAttribute("src",this._getIframeURL()),this._dialogue.set("bodyContent",t).show()},_getIframeURL:function(){return M.cfg.wwwroot+"/lib/editor/atto/plugins/mediadrop/popup/"},_insertContent:function(e){var n='<object data="'+e+'/embed_player"' + ' style="height:360px;width:640px;border:0;" type="application/x-shockwave-flash"><param name="allowScriptAccess" value="never"><param name="allowNetworking" value="internal">' + '</object>';this.editor.focus(),this.get("host").insertContentAtFocusPoint(n),this.markUpdated()}})},"@VERSION@",{requires:["moodle-editor_atto-plugin"]});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement