Opened 6 years ago

Last modified 6 years ago

#10060 confirmed Bug

Disabled textarea fields are not readOnly by default

Reported by: suzume Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0 Beta
Keywords: Cc:

Description

According to CKEDITOR.config.readOnly, if not specified, it should check to see if the linked textarea has the disabled attribute. This is not currently happening.

Attachments (1)

Test.htm (352 bytes) - added by suzume 6 years ago.
Test case showing the problem

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by suzume

Attachment: Test.htm added

Test case showing the problem

comment:1 Changed 6 years ago by Jakub Ś

Status: newconfirmed
Version: 4.0 Beta

It seems that currently this works with disabled="disabled" but doesn't with sole disabled.

Code from ckeditor/code/ckeditor.js; Line 291

...CKEDITOR.ELEMENT_MODE_REPLACE ? editor.element.getAttribute( 'disabled' ) : false...

should probably be changed to

...CKEDITOR.ELEMENT_MODE_REPLACE ? editor.element.hasAttribute( 'disabled' ) : false...

Since CKE 3.x supported xhtml 1.1 this was valid approach. CKE 4.x supports mainly HTML5 thus both disabled="disabled" and disabled should be checked.

Problem can be reproduced from CKE 4.0 beta

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy