Sets or retrieves the string that indicates whether the user can edit the content of the object.
HRESULT IHTMLElementDefaults::get_contentEditable(BSTR *p);HRESULT IHTMLElementDefaults::put_contentEditable(BSTR v);
- Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
- BSTR that specifies one of the values listed in Possible Values.
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.
Returns S_OK if successful, or an error value otherwise.
Security Alert 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