* Set the DOM element write permissions according to the current settings, by setting the `readonly` or `contenteditable` attributes depending on its tag type. * If the `useHtmlAttribute` parameter is set to `true`, then the `readonly` html attribute is used and has precedence over the `readOnl
(useHtmlAttribute = false)
| 1507 | * @private |
| 1508 | */ |
| 1509 | _setWritePermissions(useHtmlAttribute = false) { |
| 1510 | if ((useHtmlAttribute && this.domElement.readOnly) || this.settings.readOnly) { |
| 1511 | this._setReadOnly(); |
| 1512 | } else { |
| 1513 | this._setReadWrite(); |
| 1514 | } |
| 1515 | } |
| 1516 | |
| 1517 | /** |
| 1518 | * Set the element to be read-only. |
no test coverage detected