-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs issue report from "framework/guides/plugins/creating-simple-plugin-timestamp.html" #17677
Comments
Copying files from 'final-project' subdirectory and rebuilding works... - but needs to be reflected in tutorial |
Hmm, this is an outdated version of the page that page, I thought we set up redirects for it. @godai78 could you check? The proper version is: https://ckeditor.com/docs/ckeditor5/latest/framework/tutorials/creating-simple-plugin-timestamp.html |
Thanks - helpful - this worked. BTW running the
Doing: I get
I'm not sure if this is a ckeditor issue - looks like node to me? |
The ExperimentalWarning issue is discussed here: npm/cli#7857 |
Origin URL
https://ckeditor.com/docs/ckeditor5/latest/framework/guides/plugins/creating-simple-plugin-timestamp.html
Project version
36.0.1
Is the information outdated? How?
The example code does not match that provided if cloned.
The filenames are also different eg in docs: app.js - actually: main.js
The generated code adds to dist/index.html:
<script type="module" crossorigin src="/assets/index-Cj9vh0i5.js"></script>
This gives an error as the paths are absolute, so have to manualy dd a . eg: ./assets/index...
Adding the imagined new code:
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
class Timestamp extends Plugin {
init() {
console.log('Timestamp was initialized.');
}
}
Gives a duplicate plugin error - so remove import line. Code runs.
Add ', Timestamp' to plugins array: rebuild etc, get debugger invoked and
TypeError: Illegal constructor. at:
*/class NE extends Plugin{init(){console.log("Timestamp was initialized.")}}_5.create(document.querySelector("#editor"),{plugins:[O5,Qi,V5,fE,Pk,
......
Is there something missing in the guide? What is it?
No response
Is there anything else you would like to add?
pleaserespond quickly!
User agent
Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
The text was updated successfully, but these errors were encountered: