setting observer to read-only mode for ace editor