CommandCollection and Editor.execute should return a result. #7647
Labels
domain:dx
This issue reports a developer experience problem or possible improvement.
package:core
type:improvement
This issue reports a possible enhancement of an existing feature.
📝 Provide a description of the improvement
editor.execute, CommandCollection.execute
should/could return thecommand.execute
valueckeditor5/packages/ckeditor5-core/src/commandcollection.js
Line 68 in 1c44993
ckeditor5/packages/ckeditor5-core/src/editor/editor.js
Line 288 in 1c44993
The current setup makes testing async commands complicated, as I cannot write
It also introduces inconsistency, as I can do such things when calling
command.execute
directlyhttps://github.com/cksource/ckeditor5-internal/blob/233614fa4153c7cce92ff7f6b3304ba6b197aa8b/packages/ckeditor5-export-pdf/tests/exportpdfcommmand.js#L178-L180
📃 Other details
If you'd like to see this improvement implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: