Opened 13 years ago
Closed 13 years ago
#19843 closed enhancement (fixed)
Editor API + DFW
Reported by: | sushkov | Owned by: | sushkov |
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Editor | Keywords: | dev-feedback has-patch |
Focuses: | Cc: |
Description
Currently wp_editor()
has no out-of-the-box support for DFW
TinyMCE wpfullscreen plugin has to be tweaked and proper CSS/JS files enqueued.
Attachments (2)
Change History (20)
#3
@
13 years ago
You can use this plugin to test editors:
https://gist.github.com/1820220
Before using, run the minifier!
#4
@
13 years ago
I also updated the gist, if you want to stress-test it.
https://gist.github.com/1820220
#7
@
13 years ago
Tested separating the DFW styles in another stylesheet: it doesn't make much difference as when minified and compressed the combined stylesheet is only 1KB larger. Better to have all editor related styles in one stylesheet and avoid the extra request when on the front-end.
#11
follow-up:
↓ 12
@
13 years ago
Via ocean90, plugins that enqueue editor-buttons directly:
slidedeck-lite-for-wordpress/slidedeck.php rich-text-tags/rich-text-tags.php marctv-quicktags/marctv_quicktags.php easy-admin-color-schemes/easy-admin-color-schemes.php ckeditor-for-wordpress/ckeditor_class.php background-manager/app/Myatu/WordPress/BackgroundManager/Main.php advanced-custom-fields/core/fields/wysiwyg.php
Sigh.
#12
in reply to:
↑ 11
@
13 years ago
Replying to nacin:
Via ocean90, plugins that enqueue editor-buttons directly...
Ugh, hope we can keep the rename. There is a way to make it back-compat: add a css file with the old name that only has one @import rule at the top and a comment that it's deprecated.
#13
@
13 years ago
enqueue editor-buttons directly
Not sure if it's clear, but they are using wp_print_styles
/ wp_enqueue_style
, not directly the files.
So we could handle this in wp_print_styles
/ wp_enqueue_style
. If $handle
is editor-buttons
set $handle
to editor
and return a _deprecated_argument
message. Should be enough.
#14
follow-up:
↓ 15
@
13 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
The problem also is things like dependencies. If someone specifies 'editor-buttons' as a dependency we'll have to handle the renaming there as well.
We could just rename back the handle and leave the file as editor.dev.css, for now.
#15
in reply to:
↑ 14
@
13 years ago
Replying to nacin:
We could just rename back the handle and leave the file as editor.dev.css, for now.
Or perhaps have both handles 'editor-buttons' and 'editor' (pointing to the same file) and trigger a deprecated notice if the first one is used. Or even email the 7 plugins authors and ask them to change the handle name?
CSS rules that are required by DFW
https://github.com/scholarpress/buddypress-courseware/blob/master/static/css/courseware-editor.css