Post Snippets - Version 1.3.5

Version Description

Download this release

Release Info

Developer artstorm
Plugin Icon 128x128 Post Snippets
Version 1.3.5
Comparing to
See all releases

Code changes from version 1.3 to 1.3.5

Files changed (3) hide show
  1. post-snippets.php +1 -1
  2. readme.txt +6 -2
  3. tinymce/window.php +5 -3
post-snippets.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Post Snippets
4
  Plugin URI: http://coding.cglounge.com/wordpress-plugins/post-snippets/
5
  Description: Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button or Quicktags.
6
- Version: 1.3
7
  Author: Johan Steen
8
  Author URI: http://coding.cglounge.com/
9
  Text Domain: post-snippets
3
  Plugin Name: Post Snippets
4
  Plugin URI: http://coding.cglounge.com/wordpress-plugins/post-snippets/
5
  Description: Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button or Quicktags.
6
+ Version: 1.3.5
7
  Author: Johan Steen
8
  Author URI: http://coding.cglounge.com/
9
  Text Domain: post-snippets
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Post Snippets ===
2
  Contributors: artstorm
3
- Donate link: http://coding.cglounge.com/wordpress-plugins/post-snippets/
4
  Tags: post, admin, snippet, html, custom, page, dynamic, editor, quicktag
5
  Requires at least: 2.7
6
  Tested up to: 2.7.1
7
- Stable tag: 1.3
8
 
9
  Store snippets of HTML code or reoccurring text that you often use in your posts. Custom variables can be used.
10
 
@@ -46,6 +46,10 @@ Meditation.
46
 
47
  == Changelog ==
48
 
 
 
 
 
49
  = Version 1.3 - 2 Apr 2009 =
50
  * Fixed a problem with the regular expressions that prohibited variables consisting of just a single number to work.
51
  * Updated the Help info in the admin page to take less space.
1
  === Post Snippets ===
2
  Contributors: artstorm
3
+ Donate link: http://coding.cglounge.com/wordpress-plugins/post-snippets/#pintware
4
  Tags: post, admin, snippet, html, custom, page, dynamic, editor, quicktag
5
  Requires at least: 2.7
6
  Tested up to: 2.7.1
7
+ Stable tag: 1.3.5
8
 
9
  Store snippets of HTML code or reoccurring text that you often use in your posts. Custom variables can be used.
10
 
46
 
47
  == Changelog ==
48
 
49
+ = Version 1.3.5 - 9 Apr 2009 =
50
+ * Fixed so the TinyMCE window adds a scrollbar if there is more variables for a snippet than fits in the window.
51
+ * Fixed a bug that snippets didn't get inserted when using the visual editor in fullscreen mode.
52
+
53
  = Version 1.3 - 2 Apr 2009 =
54
  * Fixed a problem with the regular expressions that prohibited variables consisting of just a single number to work.
55
  * Updated the Help info in the admin page to take less space.
tinymce/window.php CHANGED
@@ -55,14 +55,16 @@ if ( !is_user_logged_in() || !current_user_can('edit_posts') )
55
 
56
 
57
  if(window.tinyMCE) {
58
- window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, insertString);
 
 
 
59
  //Peforms a clean up of the current editor HTML.
60
  //tinyMCEPopup.editor.execCommand('mceCleanup');
61
  //Repaints the editor. Sometimes the browser has graphic glitches.
62
  tinyMCEPopup.editor.execCommand('mceRepaint');
63
  tinyMCEPopup.close();
64
  }
65
-
66
  return;
67
  }
68
  </script>
@@ -82,7 +84,7 @@ if ( !is_user_logged_in() || !current_user_can('edit_posts') )
82
  </ul>
83
  </div>
84
 
85
- <div class="panel_wrapper">
86
  <?php
87
  $snippets = get_option($postSnippets->plugin_options);
88
  for ($i = 0; $i < count($snippets); $i++) { ?>
55
 
56
 
57
  if(window.tinyMCE) {
58
+ //window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, insertString);
59
+ tinyMCEPopup.execCommand("mceBeginUndoLevel");
60
+ tinyMCEPopup.execCommand('mceInsertContent', false, insertString);
61
+ tinyMCEPopup.execCommand("mceEndUndoLevel");
62
  //Peforms a clean up of the current editor HTML.
63
  //tinyMCEPopup.editor.execCommand('mceCleanup');
64
  //Repaints the editor. Sometimes the browser has graphic glitches.
65
  tinyMCEPopup.editor.execCommand('mceRepaint');
66
  tinyMCEPopup.close();
67
  }
 
68
  return;
69
  }
70
  </script>
84
  </ul>
85
  </div>
86
 
87
+ <div class="panel_wrapper" style="overflow:auto;">
88
  <?php
89
  $snippets = get_option($postSnippets->plugin_options);
90
  for ($i = 0; $i < count($snippets); $i++) { ?>