How to make Smart Doc Editor Read only?

Hi All,

I am trying to make Smart Editor Read only . But it is not working. I am using 2023.12.

elements.smartdocumenteditor.readOnly = true;This is not working

Please help me.