Wysiwyg 5.x-1.x, xxxx-xx-xx
---------------------------
+#367632 by sun: Fixed "Unexpected identifier, string or number" error in IE.
#367632 by sun: Fixed invalid JavaScript syntax.
#319363 by sun: Follow-up: Synced 1.x with 2.x where possible.
#364782 by sun: Fixed theme stylesheets not properly loaded.
* Attach this editor to a target element.
*/
Drupal.wysiwyg.editor.attach.fckeditor = function(context, params, settings) {
- var FCKinstance = new FCKeditor(params.field, settings['Width'], settings['Height']);
+ var FCKinstance = new FCKeditor(params.field, settings.Width, settings.Height);
// Apply editor instance settings.
FCKinstance.BasePath = settings.EditorPath;
// Apply 'Wysiwyg' toolbar, if defined.
// Remove editor instance.
$('#' + whizzies[id] + '-whizzywig').remove();
whizzies.splice(id, 1);
- }
+ };
if (typeof params != 'undefined') {
for (var id in whizzies) {
// Convert format id into string.
params.format = 'format' + params.format;
// Convert numeric values.
- params.status = parseInt(params.status);
- params.resizable = parseInt(params.resizable);
+ params.status = parseInt(params.status, 10);
+ params.resizable = parseInt(params.resizable, 10);
return params;
};