- Issue created by @Maglor
- Status changed to Postponed: needs info
8 months ago 6:02am 4 April 2024 - π©πͺGermany vincent.hoehn Dresden, Germany
Hello Maglor,
I cannot reproduce the error. The module works by default with the standard file ckeditor5_template.json.example.
The complete editor is broken. Do you see any errors in the console (accessible via F12)?
I suspect it is due to your template file or the content.
In addition, please note that you have various configuration options within the βText formats and editorsβ section (see screenshot attached).
BR
Vincent - π§πͺBelgium Maglor
Dear Vincent,
Thank you for verifying. Your F12 tip gives me more insight. It is indeed throwing some errors, and I think I found out why.
In the F12 console:
Value: /modules/contrib/ckeditor5_template/template/ckeditor5_template.json.example GET https://gigview.be/modules/contrib/ckeditor5_template/template/ckeditor5_template.json.example 404 (Not Found) SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON Debugging can be done with an unminified version of CKEditor by installing from the source file. Consult documentation at https://www.drupal.org/node/3258901 TypeError: Cannot read properties of undefined (reading 'forEach')
I'm however still in testing phase of my website on a subdomain: gigview.be/d10. So the GET should come from https://gigview.be/d10/modules/contrib/ckeditor5_template/template/ckedi...
When I try to add "/d10" before the Template path in the configuration, it says "template file not found", it only accepts as of /modules
Any suggestion or workaround to get this working? - π©πͺGermany vincent.hoehn Dresden, Germany
I think your issue is related to https://www.drupal.org/project/ckeditor5_template/issues/3378191 β¨ Possibility to specify a template file, so that it is not always overwritten during an update Fixed .
Drupal must be able to access the file, so it must be located under DRUPAL_ROOT.You can place your template.json everywhere under DRUPAL_ROOT. Thereafter, you can configure the right file location under "text formats and editors".
- π§πͺBelgium Maglor
That did the trick! Thank you! Can be closed, works as expected.
- Status changed to Closed: works as designed
8 months ago 11:47am 5 April 2024