Ticket #5956 (closed Bug: fixed)

Opened 4 years ago

Last modified 4 years ago

Can not create an editor inside an hidden container

Reported by: lonelycastle Owned by: Saare
Priority: Normal Milestone: CKEditor 3.4.1
Component: General Version: 3.0
Keywords: Firefox Cc:

Description

I'm using jquery along with several jquery plugins including Thickbox. When I try to load the ckeditor in a thickbox window it loads just fine, but it throws an error in the Firefox (3.6.3) error console and any text typed into the ckeditor doesn't get translated to the hidden textarea and, thus, does not get submitted when the form in the thickbox window is submitted.

Here's the jquery which gets called after the thickbox window loads should get all textareas with class='ckeditor_ajax' and replace them with the ckeditor:

$('textarea.ckeditor_ajax').each(function() {
var name = $(this).attr('name');
CKEDITOR.replace(name);
});

And here is the error which appears in the Firefox error console:

Error: h is null
Source File: /ckeditor/ckeditor.js
Line: 13

I also noticed a forum post about it which might include some more info: http://cksource.com/forums/viewtopic.php?f=11&t=19332&p=49286

Attachments

5956.patch (1.1 KB) - added by Saare 4 years ago.
5956_2.patch (1.1 KB) - added by Saare 4 years ago.

Change History

Changed 4 years ago by Saare

comment:1 Changed 4 years ago by Saare

  • Status changed from new to assigned
  • Summary changed from Get "h is null on ckeditor.js Line: 13" error when loading ckeditor via ajax to Can not create an editor inside an hidden container
  • Keywords Confirmed FireFox Review? added
  • Version changed from 3.3.1 to 3.0
  • Milestone changed from CKEditor 3.x to CKEditor 3.4
  • Owner set to Saare

I'm pretty sure there's another ticker for this issue but I can't find it right now.

Changed 4 years ago by Saare

comment:2 Changed 4 years ago by Saare

The bug only occurs when the iframe is loaded.

comment:3 Changed 4 years ago by fredck

  • Milestone changed from CKEditor 3.4 to CKEditor 3.5

comment:4 Changed 4 years ago by fredck

  • Keywords Firefox added; Confirmed FireFox removed

comment:5 Changed 4 years ago by tobiasz.cudnik

  • Status changed from review to review_passed

comment:6 Changed 4 years ago by Saare

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

Fixed with [5835].

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy