ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Docs issue report from "tutorials/crash-course/view.html"

Open timdadd opened this issue 2 years ago • 2 comments

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

timdadd avatar Jan 20 '24 08:01 timdadd

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?

filipsobol avatar Jan 26 '24 10:01 filipsobol

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 avatar Feb 21 '24 16:02 timdadd

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.

illia-stv avatar Apr 12 '24 12:04 illia-stv