Version Description
Fix the removal of the media plugin so it does not require re-saving the settings.
Download this release
Release Info
Developer | azaozz |
Plugin | TinyMCE Advanced |
Version | 3.4.2.1 |
Comparing to | |
See all releases |
Code changes from version 3.4.2 to 3.4.2.1
- readme.txt +4 -1
- tadv_admin.php +1 -1
- tinymce-advanced.php +20 -5
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: wysiwyg, formatting, tinymce, write, editor
|
5 |
Requires at least: 3.2
|
6 |
Tested up to: 3.2
|
7 |
-
Stable tag: 3.4.2
|
8 |
|
9 |
Enables the advanced features of TinyMCE, the WordPress WYSIWYG editor.
|
10 |
|
@@ -41,6 +41,9 @@ This plugin adds 16 plugins to [TinyMCE](http://tinymce.moxiecode.com/): Advance
|
|
41 |
|
42 |
== Changelog ==
|
43 |
|
|
|
|
|
|
|
44 |
= 3.4.2 =
|
45 |
Compatibility with WordPress 3.2 and TinyMCE 3.4.2, removed the options for suport for iframe and HTML 5.0 elements as they are supported by default in WordPress 3.2, removed the *media* plugin as it is included by default.
|
46 |
|
4 |
Tags: wysiwyg, formatting, tinymce, write, editor
|
5 |
Requires at least: 3.2
|
6 |
Tested up to: 3.2
|
7 |
+
Stable tag: 3.4.2.1
|
8 |
|
9 |
Enables the advanced features of TinyMCE, the WordPress WYSIWYG editor.
|
10 |
|
41 |
|
42 |
== Changelog ==
|
43 |
|
44 |
+
= 3.4.2.1 =
|
45 |
+
Fix the removal of the *media* plugin so it does not require re-saving the settings.
|
46 |
+
|
47 |
= 3.4.2 =
|
48 |
Compatibility with WordPress 3.2 and TinyMCE 3.4.2, removed the options for suport for iframe and HTML 5.0 elements as they are supported by default in WordPress 3.2, removed the *media* plugin as it is included by default.
|
49 |
|
tadv_admin.php
CHANGED
@@ -329,7 +329,7 @@ if ( is_array($buttons) ) {
|
|
329 |
<tr><td style="border:1px solid #CD0000;padding:2px 12px 8px;">
|
330 |
<p style="font-weight:bold;color:#CD0000;"><?php _e('Advanced Options', 'tadv'); ?></p>
|
331 |
|
332 |
-
<p><input type="checkbox" class="tadv-chk" name="advlink1" id="advlink1" <?php if ( $tadv_options['advlink1'] == '1' ) echo ' checked="checked"'; ?> /> <label for="advlink1" class="tadv-box"><?php _e('Advanced Link', 'tadv'); ?></label> <?php _e('Enabling this TinyMCE plugin will overwrite the
|
333 |
|
334 |
<?php if ( ! current_theme_supports( 'editor-style' ) ) { ?>
|
335 |
<p><?php _e('It seems your theme (still) doesn\'t support customised styles for the editor. If you would like to use that, you can create a file named <i>editor-style.css</i> and add it to your theme\'s directory. You can use the editor-style.css from the Twenty Ten theme as a template.', 'tadv'); ?></p>
|
329 |
<tr><td style="border:1px solid #CD0000;padding:2px 12px 8px;">
|
330 |
<p style="font-weight:bold;color:#CD0000;"><?php _e('Advanced Options', 'tadv'); ?></p>
|
331 |
|
332 |
+
<p><input type="checkbox" class="tadv-chk" name="advlink1" id="advlink1" <?php if ( $tadv_options['advlink1'] == '1' ) echo ' checked="checked"'; ?> /> <label for="advlink1" class="tadv-box"><?php _e('Advanced Link', 'tadv'); ?></label> <?php _e('Enabling this TinyMCE plugin will overwrite the internal links feature in WordPress 3.1 and newer. Cuttently there is no way to enable both of them at the same time.', 'tadv'); ?></p>
|
333 |
|
334 |
<?php if ( ! current_theme_supports( 'editor-style' ) ) { ?>
|
335 |
<p><?php _e('It seems your theme (still) doesn\'t support customised styles for the editor. If you would like to use that, you can create a file named <i>editor-style.css</i> and add it to your theme\'s directory. You can use the editor-style.css from the Twenty Ten theme as a template.', 'tadv'); ?></p>
|
tinymce-advanced.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: TinyMCE Advanced
|
4 |
Plugin URI: http://www.laptoptips.ca/projects/tinymce-advanced/
|
5 |
Description: Enables advanced features and plugins in TinyMCE, the visual editor in WordPress.
|
6 |
-
Version: 3.4.2
|
7 |
Author: Andrew Ozz
|
8 |
Author URI: http://www.laptoptips.ca/
|
9 |
|
@@ -24,15 +24,30 @@ if ( ! function_exists('tadv_paths') ) {
|
|
24 |
*/
|
25 |
function tadv_paths() {
|
26 |
if ( !defined('TADV_URL') )
|
27 |
-
define('TADV_URL',
|
28 |
|
29 |
if ( !defined('TADV_PATH') )
|
30 |
-
define('TADV_PATH',
|
31 |
}
|
32 |
add_action( 'plugins_loaded', 'tadv_paths', 50 );
|
33 |
}
|
34 |
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
if ( ! function_exists('tadv_add_scripts') ) {
|
37 |
function tadv_add_scripts($page) {
|
38 |
if ( 'settings_page_tinymce-advanced' == $page ) {
|
@@ -40,7 +55,7 @@ if ( ! function_exists('tadv_add_scripts') ) {
|
|
40 |
wp_enqueue_style( 'tadv-css', TADV_URL . 'css/tadv-styles.css', array(), '3.4.2' );
|
41 |
}
|
42 |
}
|
43 |
-
}
|
44 |
|
45 |
|
46 |
if ( ! function_exists('tadv_load_defaults') ) {
|
@@ -287,7 +302,7 @@ if ( ! function_exists('tadv_load_langs') ) {
|
|
287 |
return $langs;
|
288 |
|
289 |
$langpath = TADV_PATH . 'mce/';
|
290 |
-
$dolangs = array( 'advhr', 'advimage', 'advlink', '
|
291 |
|
292 |
$langs = (array) $langs;
|
293 |
foreach( $tadv_plugins as $plugin ) {
|
3 |
Plugin Name: TinyMCE Advanced
|
4 |
Plugin URI: http://www.laptoptips.ca/projects/tinymce-advanced/
|
5 |
Description: Enables advanced features and plugins in TinyMCE, the visual editor in WordPress.
|
6 |
+
Version: 3.4.2.1
|
7 |
Author: Andrew Ozz
|
8 |
Author URI: http://www.laptoptips.ca/
|
9 |
|
24 |
*/
|
25 |
function tadv_paths() {
|
26 |
if ( !defined('TADV_URL') )
|
27 |
+
define('TADV_URL', plugin_dir_url(__FILE__));
|
28 |
|
29 |
if ( !defined('TADV_PATH') )
|
30 |
+
define('TADV_PATH', plugin_dir_path(__FILE__));
|
31 |
}
|
32 |
add_action( 'plugins_loaded', 'tadv_paths', 50 );
|
33 |
}
|
34 |
|
35 |
|
36 |
+
if ( ! function_exists('tadv_version') ) {
|
37 |
+
function tadv_version() {
|
38 |
+
$ver = get_option('tadv_version', 0);
|
39 |
+
|
40 |
+
if ( $ver < 3420 ) {
|
41 |
+
update_option('tadv_version', 3420);
|
42 |
+
|
43 |
+
$plugins = array_diff( get_option('tadv_plugins', array()), array('media') );
|
44 |
+
update_option('tadv_plugins', $plugins);
|
45 |
+
}
|
46 |
+
}
|
47 |
+
add_action( 'admin_init', 'tadv_version' );
|
48 |
+
}
|
49 |
+
|
50 |
+
|
51 |
if ( ! function_exists('tadv_add_scripts') ) {
|
52 |
function tadv_add_scripts($page) {
|
53 |
if ( 'settings_page_tinymce-advanced' == $page ) {
|
55 |
wp_enqueue_style( 'tadv-css', TADV_URL . 'css/tadv-styles.css', array(), '3.4.2' );
|
56 |
}
|
57 |
}
|
58 |
+
}
|
59 |
|
60 |
|
61 |
if ( ! function_exists('tadv_load_defaults') ) {
|
302 |
return $langs;
|
303 |
|
304 |
$langpath = TADV_PATH . 'mce/';
|
305 |
+
$dolangs = array( 'advhr', 'advimage', 'advlink', 'searchreplace', 'style', 'table', 'xhtmlxtras' );
|
306 |
|
307 |
$langs = (array) $langs;
|
308 |
foreach( $tadv_plugins as $plugin ) {
|