You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > 2D Editor Library > setReadOnly

3.20 setReadOnly

D2Editor:setReadOnly(boolean)

Makes the text editor content modifiable (false) or unmodifiable (true) by the user. If a Boolean value is not specified, defaults to true.

Returns the text editor object.

Introduced in platform.apiLevel = '1.0'