It could be really cool to create an option in order to pass a placeholder to the editor.
Example use case:
<ckeditor [editor]="Editor"
[config]="CKEConfig"
placeholder="Write your message"></ckeditor>
Let me know if you want me to make a PR, it would be a pleasure!
Cheers! 馃枛
Hi, @maximelafarie!
The placeholder option is tracked in the ckeditor5 repository and hopefully will be implemented there in the next iteration: https://github.com/ckeditor/ckeditor5/issues/479. But the PR would be very welcome :)
I wouldn't implement it here to do not duplicate this feature, but we can track this issue here too to make sure it's in progress.
This feature works with the latest CKEditor5 builds (available on GH only). These builds should be available on NPM in two/three weeks. The placeholder can be set via the editor's config:
<ckeditor [editor]="Editor"
[config]="config"></ckeditor>
class Component {
public Editor = ClassicEditorBuild;
public config = {
placeholder: 'Your placeholder'
};
}
I'll close this issue after updating docs.
The release is out so this feature should work with the latest NPM builds 馃帀
Most helpful comment
This feature works with the latest CKEditor5 builds (available on GH only). These builds should be available on NPM in two/three weeks. The placeholder can be set via the editor's config:
I'll close this issue after updating docs.