Changeset 1198908
- Timestamp:
- 07/14/2015 05:24:19 PM (11 years ago)
- Location:
- documentcloud/trunk
- Files:
-
- 1 deleted
- 3 edited
-
README.md (modified) (1 diff)
-
documentcloud.php (modified) (3 diffs)
-
js (deleted)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
documentcloud/trunk/README.md
r1178476 r1198908 80 80 ## Changelog 81 81 82 ### 0.3.3 83 * Remove unused TinyMCE components 84 82 85 ### 0.3.2 83 86 * Implement a few best practice security measures -
documentcloud/trunk/documentcloud.php
r1178476 r1198908 4 4 * Plugin URI: https://www.documentcloud.org/ 5 5 * Description: Embed DocumentCloud resources in WordPress content. 6 * Version: 0.3. 26 * Version: 0.3.3 7 7 * Authors: Chris Amico, Justin Reese 8 8 * License: GPLv2 … … 44 44 add_shortcode('documentcloud', array(&$this, 'handle_dc_shortcode')); 45 45 add_filter('oembed_fetch_url', array(&$this, 'add_dc_arguments'), 10, 3); 46 47 // Setup TinyMCE shortcode-generation plugin48 // add_action('init', array(&$this, 'register_tinymce_filters'));49 46 50 47 // Setup admin settings … … 241 238 } 242 239 243 // Setup TinyMCE shortcode button244 245 function register_tinymce_filters() {246 if (current_user_can('edit_posts')) {247 add_filter('mce_external_plugins',248 array(&$this, 'add_tinymce_plugin')249 );250 251 add_filter('mce_buttons',252 array(&$this, 'register_button')253 );254 }255 }256 257 function add_tinymce_plugin($plugin_array) {258 $plugin_array['documentcloud'] = plugins_url(259 'js/documentcloud-editor-plugin.js', __FILE__);260 return $plugin_array;261 }262 263 function register_button($buttons) {264 array_push($buttons, '|', 'documentcloud');265 return $buttons;266 }267 268 240 // Setup settings for plugin 269 241 -
documentcloud/trunk/readme.txt
r1178476 r1198908 76 76 == Changelog == 77 77 78 = 0.3.3 = 79 * Remove unused TinyMCE components 80 78 81 = 0.3.2 = 79 82 * Implement a few best practice security measures
Note: See TracChangeset
for help on using the changeset viewer.