Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#4708 closed defect (bug) (fixed)

Change "mode" Option for TinyMCE

Reported by: cpoteet's profile 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)

4708.diff (413 bytes) - added by Otto42 17 years ago.
Trunk patch: Eliminate use of deprecated "specific_textareas" option in TinyMCE configuration.

Download all attachments as: .zip

Change History (9)

#1 @cpoteet
17 years ago

Oh and here is the URL explaining the deprecation
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/mode

#2 @Otto42
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 @cpoteet
17 years ago

That is as long as were comfortable turning every textarea in the admin section to a visual editor.

#4 @Otto42
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 @Otto42
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.

@Otto42
17 years ago

Trunk patch: Eliminate use of deprecated "specific_textareas" option in TinyMCE configuration.

#6 @Otto42
17 years ago

  • Keywords has-patch added
  • Priority changed from normal to low
  • Severity changed from normal to trivial
  • Version set to 2.3

Added trunk patch: Eliminate use of deprecated "specific_textareas" option in TinyMCE configuration.

#7 @Nazgul
17 years ago

  • Milestone changed from 2.3 to 2.4
  • Type changed from task to defect

#8 @ryan
17 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Fixed by TinyMCE 3.0.

Note: See TracTickets for help on using tickets.