FLUID-2275: The jquery.tinymce plugin assumes that TinyMCE is present and invokes a method on it immediately upon load without checking first.

Metadata

Source
FLUID-2275
Type
Bug
Priority
Blocker
Status
Closed
Resolution
Fixed
Assignee
Colin Clark
Reporter
Colin Clark
Created
2009-02-19T19:01:37.000-0500
Updated
2011-02-28T16:45:17.889-0500
Versions
  1. 0.6
  2. 0.7
  3. 0.8
  4. 1.0
Fixed Versions
  1. 1.1
Component
  1. Inline Edit

Description

At the moment, the jquery.tinymce plugin invokes the following code immediately upon being parsed:

// Invoke this immediately to prime TinyMCE.
tinyMCE.init({
mode: "none",
theme: "simple"
});

However, to properly be included in Fluid-all.js, the plugin should not assume that TinyMCE is present, in case a user is using Fluid-all.js without being interested in TinyMCE-related code.

The correct implementation should be:

if (typeof(tinyMCE) !== "undefined") {
// Invoke this immediately to prime TinyMCE.
tinyMCE.init({
mode: "none",
theme: "simple"
});
}

Comments

  • Colin Clark commented 2009-05-11T18:33:57.000-0400

    I fixed this issue in r7160.

  • Michelle D'Souza commented 2011-02-28T16:45:17.878-0500

    Closing issues that were fixed in 1.1