question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CKEDITOR is not defined

See original GitHub issue

Hi!

I went to try the plugin for CKEDITOR and I am getting this error.

Uncaught ReferenceError: CKEDITOR is not defined

<div id="gjs"></div> <script type="text/javascript">     var editor = grapesjs.init({         container : '#gjs',         plugins: ['gjs-plugin-ckeditor'],         pluginsOpts: {           "gjs-plugin-ckeditor": {           options: { language: "en" }           }         }     }); </script>

  • Am I missing something?

edit: Just read #140 and realized, I should’ve posted this at artf/grapesjs-plugin-ckeditor? … my bad

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
shareefhiasatcommented, May 25, 2018

@milapshah15

Am using newsletter-preset , here is my scripts

 <script src="//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
 <script src="//feather.aviary.com/imaging/v3/editor.js"></script>

 <script src="//unpkg.com/grapesjs@0.10.7/dist/grapes.min.js"></script>
 <script src="https://cdn.jsdelivr.net/npm/grapesjs-plugin-export@0.1.5/dist/grapesjs-plugin-export.min.js"></script>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/ckeditor/4.9.2/ckeditor.js"></script>
 <script src="https://cdn.jsdelivr.net/npm/grapesjs-plugin-ckeditor@0.0.9/dist/grapesjs-plugin-ckeditor.min.js"></script>

The main notes to notice is

  1. Only including the cdn version syntax from

//cdn.ckeditor.com/4.9.2/standard/ckeditor.js Worked.

  1. It is still not stable enought for all different operations for the ckeditor for example. insert special character and insert table did not work with js exception.

Finally About the js exception that appear for the old elements

But this worked dont know why, but its not always working on all text elements, especially the one that are styled with old ( default toolbar like if you did bold in my case with old toolbar ) then added the ckeditor and tried double click nothing happens and says the following

Uncaught Error: [CKEDITOR.resourceManager.load] Resource name "sharedspace" was not found at "http://cdn.ckeditor.com/4.9.2/standard/plugins/sharedspace/plugin.js?t=I3I8".
    at CKEDITOR.resourceManager.<anonymous> (ckeditor.js:255)
    at e (ckeditor.js:250)
    at Array.z (ckeditor.js:250)
    at y (ckeditor.js:250)
    at HTMLScriptElement.A.CKEDITOR.env.ie.e.$.onerror (ckeditor.js:251)

I believe its not backward compatable templates , meaning either you save your template with ckeditor included as plugin and continue that way, or the default way. otherwise you may have little in compatabilities with element or you shall delete it and re add it ( i mean like text for example readd and re edit it.

1reaction
manabroyowncommented, Jun 21, 2019

@shareefhiasat Thank you very much

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReferenceError: CKEDITOR is not defined - Stack Overflow
So if you are using an URL like http://bp.php5.cz/ , and then say /ckeditor/ckeditor.js , it will mean http://bp.php5.cz/ckeditor/ckeditor.js .
Read more >
ReferenceError: CKEDITOR is not defined
I made a web app in php & javascript where all the files were uploaded locally to each web site. The ckeditor folder...
Read more >
Uncaught ReferenceError: CKEDITOR is not defined
Hi, I have follow the url below and try a ceditor field type https://editor.datatables.net/plug-ins/field-type/editor.ckeditor.
Read more >
ReferenceError: CKEDITOR is not defined - Experts Exchange
CKEDITOR.replace( 'editor1' ); I guess this is related to that the js file is not being loaded and i am trying to use...
Read more >
CKEDITOR is not defined - Forums - Liferay
CKEDITOR is not defined ... sree p, modified 3 Years ago. CKEDITOR is not defined. Junior Member Posts: 91 Join Date: 10/3/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found