Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#5956 closed Bug (fixed)

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 (2)

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

Download all attachments as: .zip

Change History (9)

Changed 5 years ago by Saare

comment:1 Changed 5 years ago by Saare

  • Keywords Confirmed FireFox Review? added
  • Milestone changed from CKEditor 3.x to CKEditor 3.4
  • Owner set to 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
  • Version changed from 3.3.1 to 3.0

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

Changed 5 years ago by Saare

comment:2 Changed 5 years ago by Saare

The bug only occurs when the iframe is loaded.

comment:3 Changed 5 years ago by fredck

  • Milestone changed from CKEditor 3.4 to CKEditor 3.5

comment:4 Changed 5 years ago by fredck

  • Keywords Firefox added; Confirmed FireFox removed

comment:5 Changed 5 years ago by tobiasz.cudnik

  • Status changed from review to review_passed

comment:6 Changed 5 years ago by Saare

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

Fixed with [5835].

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