!function(){tinymce.create("tinymce.plugins.gallery_button_plugin",{init:function(t,e){var o=qt_gallery_shortcodes;t.addButton("qtgallery",{type:"listbox",text:"Choose a gallery",icon:!1,tooltip:"Insert QantumGallery",fixedWidth:!1,values:o,onselect:function(e){var o=this.value(),n=t.selection,a=n.getRng();t.focus();var r='[qtgallery id="'+o+'"]';t.execCommand("mceInsertContent",0,r)},onPostRender:function(){t.my_control=this}});var n=[{text:"3D Carousel",value:'[qt-carousel preview="true" stackid="" quantity="5" posttype="post" orderby="post_date" taxonomy="" term_ids="" arrows="true" vpadding="50px" time_constant="200" dist="-30" shift="0" padding="10"]'},{text:"Diamonds",value:'[qt-diamonds preview="true" stackid="" quantity="5" posttype="post" orderby="post_date" taxonomy="" term_ids="" archivelink="true"]'},{text:"Owl Carousel",value:'[qt-owlcarousel preview="true" stackid="" currentid="" quantity="12" posttype="post" type=""  items=4 orderby="post_date" taxonomy="category" containerid="" autoplay="false" autoplayTimeout="5000 nav="true" dots="true" navRewind="true" autoplayHoverPause="true" margin="30" loop="true" center="false" mouseDrag="true" touchDrag="true" pullDrag="true" freeDrag="false" stagepadding="0" startPosition="0"]'},{text:"Owl Carousel Row",value:'[qt-owlcarousel-row preview="true" stackid="" currentid="" quantity="12" posttype="post" type=""  items=4 orderby="post_date" taxonomy="category" containerid="" autoplay="false" autoplayTimeout="5000 nav="true" dots="false" navRewind="true" autoplayHoverPause="true" margin="30" loop="true" center="false" mouseDrag="true" touchDrag="true" pullDrag="true" freeDrag="false" stagepadding="0" startPosition="0"]'},{text:"Skywheel",value:'[qt-skywheel preview="true" stackid="" quantity="5" posttype="post" orderby="post_date" taxonomy="" term_ids="" archivelink="true" height="400px" width="100%"]'},{text:"Slideshow",value:'[qt-slideshow excerpt="" preview="true" stackid="" quantity="5" posttype="post" orderby="post_date" taxonomy="" term_ids="" transition="500" interval="6000" indicators="true" align="center" arrows="true" full_width="false" widescreen="false"]'}];t.addButton("qtGridstacks",{type:"listbox",text:"QT GridStack Full",icon:!1,tooltip:"Insert GridStack",fixedWidth:!1,values:n,onselect:function(e){var o=this.value(),n=t.selection,a=n.getRng();t.focus();var r=o;t.execCommand("mceInsertContent",0,r)},onPostRender:function(){t.my_control=this}}),t.addButton("qtIcons",{type:"button",text:"QT Icons",icon:" wp-menu-image dashicons-before dashicons-welcome-view-site",tooltip:"Add Icon",fixedWidth:!1,onclick:function(e){t.focus(),document.getElementById("qtaddicons").click()},onPostRender:function(){t.my_control=this}}),t.addButton("qtrelease",{type:"button",text:"QT Release",icon:" wp-menu-image dashicons-before dashicons-format-audio",tooltip:"Embed single release",fixedWidth:!1,onclick:function(e){t.focus(),t.execCommand("mceInsertContent",0,'[qtrelease id=""]')},onPostRender:function(){t.my_control=this}})},createControl:function(t,e){return null},getInfo:function(){return{longname:"Extra Buttons",author:"QantumThemes",version:"1"}}}),tinymce.PluginManager.add("qt_shortcodes_plugin",tinymce.plugins.gallery_button_plugin)}();
//# sourceMappingURL=./qt-js-tinymce-min.js.map