Opened 10 years ago

Closed 10 years ago

#12835 closed Bug (expired)

TypeError: this.getWindow(...).$ is undefined

Reported by: faren Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

hello i have this error : TypeError: this.getWindow(...).$ is undefined in ckeditor.js: line 83

i am trying to ajaxify comments in drupal but this error occures when i reply a comment and i try to save.

this is my code: $.ajax({

type: "POST", url: url, data: $(this).serialize(), serializes the form's elements.

success: function (data) {

document.title = data.match("<title>(.*?)</title>")[1];

data = $(data); var link = [],

style = [], script = [];

var currentLink = $('link'),

currentStyle = $('style'), currentScript = $('script');

for (var i=0; i <data.length; i++) {

switch (data[i].tagName) {

case "LINK":

link.push(data[i]); break;

case "STYLE":

style.push(data[i]); break;

case "SCRIPT":

script.push(data[i]); break;

}

} link = $(link), style = $(style), script = $(script); getNewElement(link, currentLink); getNewElement(style, currentStyle); getNewElement(script, currentScript);

$( "#content" ).html( data.find("#block-system-main")); Drupal.attachBehaviors('#content');

var content_type=Drupal.settings.ajax_links_api.class_content_type; $("body").attr('class',content_type +' toolbar-drawer');

ajaxLoading = false;

getCurrentCatForBody();

}, error: function (xhr, ajaxOptions, thrownError) {

window.location = url;

}

});

Change History (2)

comment:1 Changed 10 years ago by Jakub Ś

Status: newpending

I'm not familiar with such problem and it looks to me like an implementation issue.

Could you please provide reduced application showing this problem in code? Best if it is some external URL to zipped project that I can drop into my server and check problem locally.

comment:2 Changed 10 years ago by Jakub Ś

Resolution: expired
Status: pendingclosed
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