ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
8.27k stars 3.59k forks source link

Docs issue report from "installation/getting-started/quick-start-other.html" #16290

Open signalpoint opened 2 weeks ago

signalpoint commented 2 weeks ago

Origin URL

https://ckeditor.com/docs/ckeditor5/latest/installation/getting-started/quick-start-other.html#building-the-editor-from-source

Project version

41.3.1

Is the information outdated? How?

No response

Is there something missing in the guide? What is it?

At the very end of the Building the editor from source section, when I load the custom bundle.js file into my own vanilla JS application and then try to create an editor, this error message is thrown:

Uncaught ReferenceError: ClassicEditor is not defined

In my vanilla application, I'm not using webpack, or npm, etc, and I'm not sure if that is related to the error.

However, this StackOverflow question and answer helped me resolve it by adding this to the end of app.js and then rebuilding CKEeditor:

// app.js
// ...
window.ClassicEditor = ClassicEditor;

I hope this helps someone out there and if you feel this would be required for some vanilla JS applications, perhaps it's worth mentioning in the docs.

Thank you, CKEditor Team!

Is there anything else you would like to add?

No response

User agent

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36