Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #30187, comment 5


Ignore:
Timestamp:
11/02/2014 12:02:46 AM (10 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30187, comment 5

    v2 v3  
    11To be able to properly do this we would need to (somewhat) refactor WP_Editors. Currently it is geared towards adding the same editor as on the Edit Post screen somewhere else. Would need to make it work better for multiple instances of TinyMCE.
    22
    3 One way to accomplish removing of additional stylesheets without needing extra filters would be to hook into `'wp_editor_settings'`, check if it is the desired instance, then add a filter on `'tiny_mce_before_init'` where the `content_css` setting can be emptied/tweaked.
     3One way to remove additional stylesheets without needing extra filters would be to hook into `'wp_editor_settings'`, check if it is the desired instance, then add a filter on `'tiny_mce_before_init'` where the `content_css` setting can be emptied/tweaked.
    44
    55Another way is to do the same with some JS added on the `'wp_tiny_mce_init'` action.