Ckeditor5: Placeholder is still shown if editor isReadOnly

Created on 22 Aug 2019  ·  3Comments  ·  Source: ckeditor/ckeditor5

🐞 Bug report

💻 Version of CKEditor

12.3.1

📋 Steps to reproduce

  1. Create Editor with Placeholder set
  2. set it as Read only

✅ Expected result

Placeholder will not shown in read only editor

❎ Actual result

Placeholder will display in read only editor

bug

Most helpful comment

That's possible as well... Humm... I wonder if that's more of a CSS or JS logic :D I'm fine with both. @dkonopka, feel free to go either way.

All 3 comments

Thanks. It seems that a simple CSS selector change should fix it.

yes. my fix was a css selector too.
But it would be nicer if the placer holder css class ist not added if read only (my opinion)

That's possible as well... Humm... I wonder if that's more of a CSS or JS logic :D I'm fine with both. @dkonopka, feel free to go either way.

Was this page helpful?
0 / 5 - 0 ratings