Skip to content

CKEditor broken in AgentTicketCompose since OTOBO 11.0.5: CKEDITOR is not defined #3690

Description

@wornet-aer

We have upgraded our Docker based OTOBO from 10.1 to 11.0.5 using https://doc.otobo.org/manual/installation/11.0/en/content/updating-docker.html#update-otobo today. Unfortunately it seems like the upgrade has broken the CKEditor in AgentTicketCompose view.

The ticket body is only displayed as HTML, the browser (FF and Chrome tested) shows an alert box "An error occurred", the JS Console says "Uncaught ReferenceError: CKEDITOR is not defined". However the other pages with CKEditor e.g. for adding notes to a ticket are working fine.

Can anyone reproduce this behaviour?
Any ideas on how to fix this?

Update:
Tried to clear server-side caches, but the error seem to persist.
./bin/otobo.Console.pl Maint::Loader::CacheCleanup and ./bin/otobo.Console.pl Maint::Cache::Delete did not help.

otobo_fehler

Update2:
With Loader::Enabled::JS set to 0 the error still persists, so the JS-minify is not the problem in this case.

Workaround:
var/httpd/htdocs/js/Core.Agent.TextModule.js needs two edits:

Line 55 -> 57

//    CKEDITOR.on('instanceReady', function(CKevent) {
//       TargetNS.DragAndDrop(CKevent);
//     });

Line 94 -> 98

//     CKEDITOR.on('instanceReady', function() {
//       const Width = $('#cke_RichText').css('width');
//       $('#cke_RichText').css('width', '');
//       $('#cke_RichText').css('max-width', Width);
//     });

We didn't notice any major side-effects yet. All Text-Edit views seem to be working fine now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions