Changeset 731757
- Timestamp:
- 06/25/2013 10:24:46 PM (13 years ago)
- Location:
- rich-text-excerpts/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (1 diff)
-
rich-text-excerpts.js (modified) (1 diff)
-
rich-text-excerpts.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rich-text-excerpts/trunk/readme.txt
r731052 r731757 66 66 67 67 = 1.0 = 68 * Wordpress submission after [initial development on bitbucket](https://bitbucket.org/bjorsq/rich-text-excerpts).68 * Wordpress submission after initial development on bitbucket. 69 69 70 70 == Screenshots == -
rich-text-excerpts/trunk/rich-text-excerpts.js
r731159 r731757 103 103 104 104 textarea.each(function(index, element) { 105 var editor; 105 var editor, is_active; 106 106 107 editor = tinyMCE.EditorManager.get(element.id); 108 is_active = $(this).parents('.tmce-active').length; 109 107 110 if (creatingEditor) { 108 if (!editor ) {111 if (!editor && is_active) { 109 112 tinyMCE.execCommand('mceAddControl', true, element.id); 110 113 } 111 114 } 112 115 else { 113 if (editor ) {114 editor.save(); 116 if (editor && is_active) { 117 editor.save(); 115 118 tinyMCE.execCommand('mceRemoveControl', true, element.id); 116 119 } -
rich-text-excerpts/trunk/rich-text-excerpts.php
r731159 r731757 6 6 Author: Peter Edwards 7 7 Author URI: http://bjorsq.net 8 Version: 1.3 beta8 Version: 1.3 9 9 Text Domain: rich-text-excerpts 10 10 License: GPLv3 … … 311 311 ); 312 312 313 add_settings_field(314 'metabox',315 __('Embed the excerpt editor in a draggable meta box', 'rich-text-excerpts'),316 array( __CLASS__, 'options_setting_metabox' ),317 'rte',318 'post-type-options'319 );320 313 321 314 /* editor options */ … … 326 319 'rte' 327 320 ); 321 322 add_settings_field( 323 'metabox', 324 __('Use a meta box', 'rich-text-excerpts'), 325 array( __CLASS__, 'options_setting_metabox' ), 326 'rte', 327 'editor-options' 328 ); 329 328 330 add_settings_field( 329 331 'editor_type', … … 408 410 $options = self::get_plugin_options(); 409 411 $chckd = $options["metabox"]["use"]? ' checked="checked"': ''; 410 412 printf('<p class="rte-use-metabox-input"><input class="rte-metabox" type="checkbox" name="rich_text_excerpts_options[metabox][use]" id="rte-use-metabox" value="1"%s /> <label for="rte-use-metabox">%s</label></p>', $chckd, __('Check this box to put the excerpt in a draggable meta box (experimental!)', 'rich-text-excerpts')); 411 413 } 412 414
Note: See TracChangeset
for help on using the changeset viewer.