This version of Unity is unsupported.

ITextEdition.isReadOnly

public bool isReadOnly;

Description

Returns true if the element is read only.