Ticket #8867 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

CKEditor extra plugin is not recognizable or found

Reported by: rlrj60 Assigned to: itamarost
Priority: normal Component: CkEditorPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I installed the plugin to my Trac 0.12.2, created a sample wiki page with a few lines, then saved it. When open the page again, I got "Undefined" within the CKEditor window as shown in the first attachment. I did some tracing and tried to remove the "extraPlugin : tracwiki", the original wiki page now shows up with encapsulated html macro (see second attachment).

It appears the CKEditor is not able to find the "tracwiki" extra-plugin. Any suggestion how to debug is greatly appreciated.

Attachments

undefined.PNG (7.2 kB) - added by rlrj60 on 06/06/11 00:45:06.
CKEditor displays "undefined" instead of existing html text.
without_extraplugins.PNG (7.8 kB) - added by rlrj60 on 06/06/11 00:47:27.
Without "extraPlugins : tracwiki", CKEditor shows the html macro.

Change History

06/06/11 00:45:06 changed by rlrj60

  • attachment undefined.PNG added.

CKEditor displays "undefined" instead of existing html text.

06/06/11 00:47:27 changed by rlrj60

  • attachment without_extraplugins.PNG added.

Without "extraPlugins : tracwiki", CKEditor shows the html macro.

06/07/11 15:57:01 changed by anonymous

I traced the code to the function jQuery.ajax() which returns "undefined". "ajax_data" does contain the HTML text before calling the AJAX function. Is the function expecting raw wiki text?

46 	 var ajaxResponse = jQuery.ajax({
47 	     type: "POST", url: ck_render_url,
48 	     data: ajax_data, dataType: "html", async: false
49 	     //success: this.ajaxSuccess, error: this.ajaxError
50 	 });
51 	 // @todo: Error handling for AJAX request
52 	 data = ajaxResponse.response;

06/08/11 00:16:36 changed by rlrj60

Turned out ajaxResponse.response is undefined. ajaxResponse.responseText contains correct data. Not sure whether it's a part of Trac 0.12.2 or not. response on line #52 above should be appended with "Text":

52 	 data = ajaxResponse.responseText;

06/10/11 09:04:14 changed by itamarost

  • status changed from new to closed.
  • resolution set to fixed.

(In [10271]) fixes #8867

06/10/11 09:06:35 changed by itamarost

Thanks for the catch and the fix!

I wonder why it worked as it was. Maybe some compatibility thing in jQuery.


Add/Change #8867 (CKEditor extra plugin is not recognizable or found)




Change Properties
Action