_setReadOnly() {
        if (this.isInputElement) {
            this.domElement.readOnly = true;
        } else {
            this.domElement.setAttribute('contenteditable', false);
        }
    }
Set the element to be read-only.
If the DOM element tag is not an `input`, then it `contenteditable` attribute is set to `false`.

@private