TinyMCE Templates - Version 0.2

Version Description

Download this release

Release Info

Developer miyauchi
Plugin Icon 128x128 TinyMCE Templates
Version 0.2
Comparing to
See all releases

Code changes from version 0.1 to 0.2

includes/MceTemplatesAdmin.class.php CHANGED
@@ -8,7 +8,7 @@ class MceTemplatesAdmin{
8
  $this->domain = $class->name;
9
  $this->table = $wpdb->prefix.$class->table;
10
 
11
- echo '<link rel="stylesheet" href="'.WP_PLUGIN_URL.'/'.$this->domain.'/style.css" type="text/css" media="all" />';
12
 
13
  echo '<div class="wrap">';
14
 
8
  $this->domain = $class->name;
9
  $this->table = $wpdb->prefix.$class->table;
10
 
11
+ echo '<link rel="stylesheet" href="'.TINYMCE_TEMPLATES_PLUGIN_URL.'/style.css" type="text/css" media="all" />';
12
 
13
  echo '<div class="wrap">';
14
 
includes/TinyMCETemplate.class.php CHANGED
@@ -8,14 +8,14 @@ class TinyMCETemplate{
8
 
9
  function __construct()
10
  {
11
- $url = WP_PLUGIN_URL.'/tinymce_templates';
12
- $plugin = $url.'/mce_plugins/plugins/template/editor_plugin.js';
13
  $path = dirname(__FILE__).'/../mce_plugins/plugins';
14
  $lang = $path.'/template/langs/langs.php';
15
  $inits = array();
16
  $url = get_bloginfo('url');
17
  $inits['template_external_list_url'] = $url.'/mce_templates.js';
18
- $this->mce_css = $url.'/editor.css';
 
19
  new mcePlugins(
20
  'template',
21
  $plugin,
8
 
9
  function __construct()
10
  {
11
+ $plugin = TINYMCE_TEMPLATES_PLUGIN_URL.'/mce_plugins/plugins/template/editor_plugin.js';
 
12
  $path = dirname(__FILE__).'/../mce_plugins/plugins';
13
  $lang = $path.'/template/langs/langs.php';
14
  $inits = array();
15
  $url = get_bloginfo('url');
16
  $inits['template_external_list_url'] = $url.'/mce_templates.js';
17
+ $this->mce_css = TINYMCE_TEMPLATES_PLUGIN_URL.'/editor.css';
18
+ $inits['content_css'] = $this->mce_css;
19
  new mcePlugins(
20
  'template',
21
  $plugin,
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://firegoby.theta.ne.jp/
4
  Tags: tinymce, Visual Editor, template
5
  Requires at least: 3.0
6
  Tested up to: 3.0
7
- Stable tag: 0.1
8
 
9
  TinyMCE Template plugin will enable to use HTML template on WordPress Visual Editor.
10
  You can edit and share this template with WordPress users.
@@ -44,10 +44,6 @@ You can send your own language pack to me.
44
  1. Template Admin.
45
  2. Visual Editor.
46
 
47
- == Changelog ==
48
- = 0.1 =
49
- * The first release.
50
-
51
  == Credits ==
52
 
53
  This plug-in is not guaranteed though the user of WordPress can freely use this plug-in free of charge regardless of the purpose.
4
  Tags: tinymce, Visual Editor, template
5
  Requires at least: 3.0
6
  Tested up to: 3.0
7
+ Stable tag: 0.2
8
 
9
  TinyMCE Template plugin will enable to use HTML template on WordPress Visual Editor.
10
  You can edit and share this template with WordPress users.
44
  1. Template Admin.
45
  2. Visual Editor.
46
 
 
 
 
 
47
  == Credits ==
48
 
49
  This plug-in is not guaranteed though the user of WordPress can freely use this plug-in free of charge regardless of the purpose.
tinymce_templates.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: TinyMCE Templates
4
  Plugin URI: http://firegoby.theta.ne.jp/wp/mce_templates
5
  Description: Manage & Add Tiny MCE template.
6
  Author: Takayuki Miyauchi (THETA NETWORKS Co,.Ltd)
7
- Version: 0.1
8
  Author URI: http://firegoby.theta.ne.jp/
9
  */
10
 
@@ -30,6 +30,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30
  THE SOFTWARE.
31
  */
32
 
 
 
33
  require_once(dirname(__FILE__).'/includes/mceplugins.class.php');
34
  require_once(dirname(__FILE__).'/includes/TinyMCETemplate.class.php');
35
  require_once(dirname(__FILE__).'/includes/MceTemplatesAdmin.class.php');
@@ -96,7 +98,7 @@ class MceTemplates{
96
  'edit_pages',
97
  'edittemplates',
98
  '',
99
- WP_PLUGIN_URL.'/'.$this->name.'/img/icon.png'
100
  );
101
  add_submenu_page(
102
  'edittemplates',
4
  Plugin URI: http://firegoby.theta.ne.jp/wp/mce_templates
5
  Description: Manage & Add Tiny MCE template.
6
  Author: Takayuki Miyauchi (THETA NETWORKS Co,.Ltd)
7
+ Version: 0.2
8
  Author URI: http://firegoby.theta.ne.jp/
9
  */
10
 
30
  THE SOFTWARE.
31
  */
32
 
33
+ define('TINYMCE_TEMPLATES_PLUGIN_URL', WP_PLUGIN_URL.'/'.dirname(plugin_basename(__FILE__)));
34
+
35
  require_once(dirname(__FILE__).'/includes/mceplugins.class.php');
36
  require_once(dirname(__FILE__).'/includes/TinyMCETemplate.class.php');
37
  require_once(dirname(__FILE__).'/includes/MceTemplatesAdmin.class.php');
98
  'edit_pages',
99
  'edittemplates',
100
  '',
101
+ WP_PLUGIN_URL.'/'.dirname(plugin_basename(__FILE__)).'/img/icon.png'
102
  );
103
  add_submenu_page(
104
  'edittemplates',