Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#5956 closed Bug (fixed)

Can not create an editor inside an hidden container

Reported by: Charlie Owned by: Sa'ar Zac Elias
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 Sa'ar Zac Elias 14 years ago.
5956_2.patch (1.1 KB) - added by Sa'ar Zac Elias 14 years ago.

Download all attachments as: .zip

Change History (9)

Changed 14 years ago by Sa'ar Zac Elias

Attachment: 5956.patch added

comment:1 Changed 14 years ago by Sa'ar Zac Elias

Keywords: Confirmed FireFox Review? added
Milestone: CKEditor 3.xCKEditor 3.4
Owner: set to Sa'ar Zac Elias
Status: newassigned
Summary: Get "h is null on ckeditor.js Line: 13" error when loading ckeditor via ajaxCan not create an editor inside an hidden container
Version: 3.3.13.0

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

Changed 14 years ago by Sa'ar Zac Elias

Attachment: 5956_2.patch added

comment:2 Changed 14 years ago by Sa'ar Zac Elias

The bug only occurs when the iframe is loaded.

comment:3 Changed 14 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.4CKEditor 3.5

comment:4 Changed 14 years ago by Frederico Caldeira Knabben

Keywords: Firefox added; Confirmed FireFox removed

comment:5 Changed 14 years ago by Tobiasz Cudnik

Status: reviewreview_passed

comment:6 Changed 14 years ago by Sa'ar Zac Elias

Resolution: fixed
Status: review_passedclosed

Fixed with [5835].

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy