WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 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)

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

Download all attachments as: .zip

Change History (9)

comment:1 cpoteet7 years ago

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

comment:2 Otto427 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

comment:3 cpoteet7 years ago

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

comment:4 Otto427 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.

comment:5 Otto427 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.

Otto427 years ago

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

comment:6 Otto427 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.

comment:7 Nazgul7 years ago

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

comment:8 ryan6 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.