(function ($) { 'use strict'; var global = { uploaded: false, uploader: {}, chosenFile: null, }; console.log("im here"); tinymce.create('tinymce.plugins.pah', { init: function (ed, url) { ed.addButton('pah_btn', { title: 'Insert your animated text', image: url + '/pah.jpg', classes: 'thickbox', onclick: function() { // var width = jQuery(window).width(), H = jQuery(window).height(), W = ( 720 < width ) ? 720 : width; // W = W - 80; // H = H - 550; // setDefaultState(); tb_show('Configure your animated text', '#TB_inline?inlineId=pah-popup&height=300&width=200'); jQuery("#TB_ajaxContent").css({ height: '100%', width: '100%', }); jQuery("#TB_window").css({ 'padding-bottom': '2rem', bottom: '2rem', overflow: 'hidden', 'max-height': '550px' }); return false; } }); }, createControl: function () { return null; }, getInfo: function () { return { longname: 'WordPress Animated Text Plugin', author: 'BWPS', authorurl: 'www.preventdirectaccess.com', infourl: 'www.preventdirectaccess.com', version: '1.0', } } }); tinymce.PluginManager.add('pah', tinymce.plugins.pah); $(function() { var form = jQuery('
| \ | \\ \ | \
|---|---|
| \ | \ | \
| \ | \ | \
| \ | \ | \
| \ | \ | \
| \ \ | \\
\ | \
\ \
\