Docs issue report from "tutorials/crash-course/view.html"
Origin URL
https://ckeditor.com/docs/ckeditor5/latest/tutorials/crash-course/view.html
Project version
41.0.0
Is the information outdated? How?
The bind...to generates an error
Offending line:
button.bind( 'isOn', 'isEnabled' ).to( command, 'value', 'isEnabled' );
Is there something missing in the guide? What is it?
No response
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/120.0.0.0 Safari/537.36
Hi @timdadd, thank you for reporting this issue. Unfortunately, I cannot reproduce it. Would it be possible for you to share the code you got after following our tutorial?
Apologies for slow reply, I don't play with this very often.
The error is invalid number of attributes.
I changed the line to remove 'value'
button.bind( 'isOn', 'isEnabled' ).to( command, 'isEnabled' );
Apologies for slow reply, I don't play with this very often. The error is invalid number of attributes. I changed the line to remove 'value'
button.bind( 'isOn', 'isEnabled' ).to( command, 'isEnabled' );
@timdadd You can not use bind().to() in this way. Please checkout our API docs how you should use it: https://ckeditor.com/docs/ckeditor5/latest/api/module_editor-balloon_ballooneditor-BalloonEditor.html#function-bind:MANY_BIND.