Opened 11 years ago

Closed 11 years ago

#10050 closed Bug (expired)

readonly = "readonly"

Reported by: xiltepin Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

CKEditor 3.6.4

If i set the document to readonly. Source as the following; readonly = "readonly".

Then I cannot remove the attribute. It is happening on IE only. Any workaround?

My code is de following

commit : function( data )
						{
							var element = data.element;

							if ( this.getValue() == 'false' )
								element.setAttribute( 'readonly', 'readonly' );
							else
								element.removeAttribute( 'readonly' );
						}

Change History (2)

comment:1 Changed 11 years ago by Jakub Ś

Status: newpending

I have used the below code on sample page:

		var editor = CKEDITOR.replace( 'editor1' );
			editor.on( 'instanceReady', function( evt ) {				
				var element = CKEDITOR.dom.element.createFromHtml( '<div readonly="readonly">hello world</div>' );
				element.removeAttribute( 'readonly' );
				evt.editor.focus();
				evt.editor.insertElement(element);//don't use in IE7 http://dev.ckeditor.com/ticket/8227				
				//evt.editor.insertHtml(element.getOuterHtml());				
			});				
});

The only problem I got was due to #8227 bug but elements were inserted properly. Could you provide sample page showing this problem e.g HTML page that can be put in samples folder and will work and show this issue.

Could you also provide details which IE has this problem?

comment:2 Changed 11 years ago by Jakub Ś

Resolution: expired
Status: pendingclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy