jQuery("#smooth-accordion-warp").collapse({ accordion: true, open: function() { this.addClass("open"); this.css({ height: this.children().outerHeight() }); }, close: function() { this.css({ height: "0px" }); this.removeClass("open"); } }); (function() { tinymce.create('tinymce.plugins.WPTuts', { /** * Initializes the plugin, this will be executed after the plugin has been created. * This call is done before the editor instance has finished it's initialization so use the onInit event * of the editor instance to intercept that event. * * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. * @param {string} url Absolute URL to where the plugin is located. */ init : function(ed, url) { ed.addCommand('smabutton', function() { return_text = '[sawarp][sawcon title="Here Is Your Title"]Your content goes here....[/sawcon] [sawcon title="Here Is Your Title"]Your content goes here....[/sawcon] [sawcon title="Here Is Your Title"]Your content goes here....[/sawcon][/sawarp]'; ed.execCommand('mceInsertContent', 0, return_text); }); ed.addButton('smabutton', { title : 'Insert accordion toggle shortcode', cmd : 'smabutton', image : url + '/btn.png' }); }, /** * Creates control instances based in the incomming name. This method is normally not * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons * but you sometimes need to create more complex controls like listboxes, split buttons etc then this * method can be used to create those. * * @param {String} n Name of the control to create. * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control. * @return {tinymce.ui.Control} New control instance or null if no control was created. */ createControl : function(n, cm) { return null; }, }); // Register plugin tinymce.PluginManager.add('wptuts', tinymce.plugins.WPTuts); })(); /* FILE ARCHIVED ON 03:02:44 Oct 21, 2016 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 06:42:06 Feb 25, 2019. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): LoadShardBlock: 72.613 (3) esindex: 0.015 captures_list: 132.668 CDXLines.iter: 11.016 (3) PetaboxLoader3.datanode: 116.041 (5) exclusion.robots: 0.371 exclusion.robots.policy: 0.359 RedisCDXSource: 45.363 PetaboxLoader3.resolve: 205.725 (2) load_resource: 323.463 *lapse({ accordion: true, open: function() { this.addClass("open"); this.css({ height: this.children().outerHeight() }); }, close: function() { this.css({ height: "0px" }); this.removeClass("open"); } }); (function() { tinymce.create('tinymce.plugins.WPTuts', { /** * Initializes the plugin, this will be executed after the plugin has been created. * This call is done before the editor instance has finished it's initialization so use the onInit event * of the editor instance to intercept that event. * * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. * @param {string} url Absolute URL to where the plugin is located. */ init : function(ed, url) { ed.addCommand('smabutton', function() { return_text = '[sawarp][sawcon title="Here Is Your Title"]Your content goes here....[/sawcon] [sawcon title="Here Is Your Title"]Your content goes here....[/sawcon] [sawcon title="Here Is Your Title"]Your content goes here....[/sawcon][/sawarp]'; ed.execCommand('mceInsertContent', 0, return_text); }); ed.addButton('smabutton', { title : 'Insert accordion toggle shortcode', cmd : 'smabutton', image : url + '/btn.png' }); }, /** * Creates control instances based in the incomming name. This method is normally not * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons * but you sometimes need to create more complex controls like listboxes, split buttons etc then this * method can be used to create those. * * @param {String} n Name of the control to create. * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control. * @return {tinymce.ui.Control} New control instance or null if no control was created. */ createControl : function(n, cm) { return null; }, }); // Register plugin tinymce.PluginManager.add('wptuts', tinymce.plugins.WPTuts); })(); /* FILE ARCHIVED ON 03:02:44 Oct 21, 2016 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 06:42:06 Feb 25, 2019. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): LoadShardBlock: 72.613 (3) esindex: 0.015 captures_list: 132.668 CDXLines.iter: 11.016 (3) PetaboxLoader3.datanode: 116.041 (5) exclusion.robots: 0.371 exclusion.robots.policy: 0.359 RedisCDXSource: 45.363 PetaboxLoader3.resolve: 205.725 (2) load_resource: 323.463 */