Skip to content
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

Editor placeholder should be created from "placeholder" attribute only when source element is <textarea> #1517

Closed
oleq opened this issue Feb 11, 2019 · 3 comments

Comments

@oleq
Copy link
Member

oleq commented Feb 11, 2019

Is this a bug report or feature request? (choose one)

🐞 Bug report

💻 Version of CKEditor

master

image

The placeholder attribute is invalid in this case. We must make sure we use a valid HTML.

@oleq oleq added type:bug This issue reports a buggy (incorrect) behavior. status:confirmed package:engine labels Feb 11, 2019
@oleq oleq added this to the iteration 22 milestone Feb 11, 2019
@oleq oleq self-assigned this Feb 11, 2019
oleq added a commit that referenced this issue Feb 11, 2019
…ents, data-placeholder should be used instead. Closes #1517.
oleq added a commit to ckeditor/ckeditor5-core that referenced this issue Feb 11, 2019
oleq added a commit to ckeditor/ckeditor5-editor-decoupled that referenced this issue Feb 11, 2019
oleq added a commit to ckeditor/ckeditor5-editor-classic that referenced this issue Feb 11, 2019
oleq added a commit to ckeditor/ckeditor5-editor-inline that referenced this issue Feb 11, 2019
oleq added a commit to ckeditor/ckeditor5-editor-balloon that referenced this issue Feb 11, 2019
@Reinmar
Copy link
Member

Reinmar commented Feb 11, 2019

I've got second thoughts. If it's named data-placeholder it's not going to work with textarea's placeholder. Do we need support for this attribute at all? Can't we handle this via the config only? And then, only for textareas, from an attribute.

@Reinmar
Copy link
Member

Reinmar commented Feb 11, 2019

:trollface:

#479

and even reading the placeholder from the editor element if the editor was initialised on a textarea.

@oleq
Copy link
Member Author

oleq commented Feb 11, 2019

image

@oleq oleq changed the title Editor placeholder should be created from "data-placeholder" instead of "placeholder" attribute Editor placeholder should be created from "placeholder" attribute only when source element is <textarea> Feb 11, 2019
Reinmar added a commit that referenced this issue Feb 11, 2019
Docs: Editor placeholder should be created from the "placeholder" attribute only when the source element is `<textarea>`. Closes #1517.
Reinmar added a commit to ckeditor/ckeditor5-editor-balloon that referenced this issue Feb 11, 2019
Internal: The editor placeholder configuration using the `placeholder` attribute should be restricted to `<textarea>` only (see [ckeditor/ckeditor5#1517](ckeditor/ckeditor5#1517)).
Reinmar added a commit to ckeditor/ckeditor5-editor-decoupled that referenced this issue Feb 11, 2019
Internal: The editor placeholder configuration using the `placeholder` attribute should be restricted to `<textarea>` only (see [ckeditor/ckeditor5#1517](ckeditor/ckeditor5#1517)).
Reinmar added a commit to ckeditor/ckeditor5-editor-inline that referenced this issue Feb 11, 2019
Internal: The editor placeholder configuration using the `placeholder` attribute should be restricted to `<textarea>` only (see [ckeditor/ckeditor5#1517](ckeditor/ckeditor5#1517)).
Reinmar added a commit to ckeditor/ckeditor5-editor-classic that referenced this issue Feb 11, 2019
Internal: The editor placeholder configuration using the `placeholder` attribute should be restricted to `<textarea>` only (see [ckeditor/ckeditor5#1517](ckeditor/ckeditor5#1517)).
Reinmar added a commit to ckeditor/ckeditor5-core that referenced this issue Feb 12, 2019
Docs: Editor placeholder should be created from the "placeholder" attribute only when the source element is `<textarea>`. (see [ckeditor/ckeditor5#1517](ckeditor/ckeditor5#1517)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants