Opened 17 years ago
Closed 17 years ago
#4708 closed defect (bug) (fixed)
Change "mode" Option for TinyMCE
Reported by: | cpoteet | Owned by: | |
---|---|---|---|
Milestone: | 2.5 | Priority: | low |
Severity: | trivial | Version: | 2.3 |
Component: | TinyMCE | Keywords: | has-patch |
Focuses: | Cc: |
Description
The option "mode" has deprecated the usage of "specific_textareas". Suggest we change it to:
tiny_mce_config.php
mode : "exact", editor_selector : "mceEditor", elements: "content"
Maybe make that "elements" pluggable to allow theme developers to add other textareas in admin section.
Attachments (1)
Change History (9)
#2
@
17 years ago
Considering that WordPress is already using the editor_selector, wouldn't mode: "textareas" work just as well? Having to specify the specific ID of the textarea when you can simply add mceEditor to it as a class seems silly.
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/editor_selector
#3
@
17 years ago
That is as long as were comfortable turning every textarea in the admin section to a visual editor.
#4
@
17 years ago
Ummm.. Then what, exactly, is the point of "editor_selector"? Because from what that page says, that will let you only turn areas marked with the mceEditor class into visual editors.
#5
@
17 years ago
As a matter of fact, I'm right. "specific_textareas" is exactly the same as "textareas". Look at tiny_mce.js, line 1638.
Changing it to "textareas" will work and it won't turn all textareas into visual editors, because we're using an editor_selector.
@
17 years ago
Trunk patch: Eliminate use of deprecated "specific_textareas" option in TinyMCE configuration.
Oh and here is the URL explaining the deprecation
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/mode