Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

t/ckeditor5/1517: The editor placeholder configuration using the placeholder attribute should be restricted to <textarea> only #29

Merged
merged 2 commits into from Feb 11, 2019

Conversation

oleq
Copy link
Member

@oleq oleq commented Feb 11, 2019

Suggested merge commit message (convention)

Fix: The editor placeholder configuration using the placeholder attribute should be restricted to <textarea> only (see ckeditor/ckeditor5#1517).


Additional information

Part of ckeditor/ckeditor5#1518.

@coveralls
Copy link

coveralls commented Feb 11, 2019

Pull Request Test Coverage Report for Build 221

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 217: 0.0%
Covered Lines: 62
Relevant Lines: 62

💛 - Coveralls

@oleq oleq changed the title t/ckeditor5/1517: Used the data-placeholder attribute instead of invalid placehold… t/ckeditor5/1517: The editor placeholder configuration using the placeholder attribute should be restricted to <textarea> only Feb 11, 2019

const placeholderText = editor.config.get( 'placeholder' ) ||
editor.sourceElement && editor.sourceElement.getAttribute( 'placeholder' );
sourceElement && sourceElement.tagName.toLowerCase() === 'textarea' && sourceElement.getAttribute( 'placeholder' );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sourceElement && sourceElement.tagName.toLowerCase() === 'textarea' && sourceElement.getAttribute( 'placeholder' );
sourceElement && sourceElement.tagName === 'TEXTAREA' && sourceElement.getAttribute( 'placeholder' );

@Reinmar Reinmar merged commit 9067656 into master Feb 11, 2019
@Reinmar Reinmar deleted the t/ckeditor5/1517 branch February 11, 2019 14:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants