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

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"
});
}

Environment

None

Activity

Show:

Michelle D'Souza February 28, 2011 at 9:45 PM

Closing issues that were fixed in 1.1

Colin Clark May 11, 2009 at 10:33 PM

I fixed this issue in r7160.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created February 20, 2009 at 12:01 AM
Updated February 28, 2011 at 9:45 PM
Resolved May 11, 2009 at 10:33 PM