Module - getEditor error in log console

Hello,

I’m working on a module for 1.8 wich have to get an XML file from another server (according to current user’s permissions), change it as JSON file and use the informations to show it in a display.

But when I try to use a basic module to only display a “hello world” as text, I always get an error in the console about ckeditor at line 307. “Uncaught TypeError: Cannot read property ‘getEditor’ of undefined”.

So, why I get this error while I don’t call this ??

Are you using the Text Module?

When I try to use the text module with just “Hello World” on it, I don’t get an error, but I do get a blank black preview. Tried to highlight it also to see if the text color was not change, but still nothing. Also changed the background to blue and that did not show up either. I do not see any errors in the log, or on my screen.

You have the text_callback defined in your Twig template, but you don’t have a field called ta_text. You need to remove the callback and that should remove the error.

1 Like

It seems I use it in my Twig template like Dan said, after remove the callback, the module return me another error but not one about getEditor !

Thank you, you save my week !

1 Like

FYI, i’m doing some work in this branch to add a /custom folder where modules can be developed. There is also a bit more information about it filled in the manual.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.