Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

contentEditable property

Sets or retrieves the string that indicates whether the user can edit the content of the object.

Syntax

HRESULT value = object.put_contentEditable( v);HRESULT value = object.get_contentEditable(* p);

Property values

Type: BSTR

inherit

Default. Content's ability to be edited by user is inherited from object's parent.

false

Content cannot be edited by the user.

true

Content can be edited by the user.

Remarks

Security Warning:  Users can change the contents of a document when the IHTMLElementDefaults::contentEditable property is set to TRUE. Using this property incorrectly can compromise the security of your application. Incorrect use of the IHTMLElementDefaults::contentEditable property might include not validating user input. If you do not validate user input, a malicious user can inject control characters or script that can harm your data. You should take routine precautions against displaying unvalidated user input. For more information, see Security Considerations: Dynamic HTML.

Windows Internet Explorer 8 and later. When a webpage is displayed in IE8 Standards mode, an object cannot receive focus when p is set to false. When pages are displayed in earlier document compatibility modes, objects can receive focus when p is false.

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.