# tablepress/2.1.8/admin/js/build/codemirror.js

TablePress – Tables in WordPress made easy, version 2.1.8. 1 lines.

- Page: https://pluginprobe.com/plugins/tablepress/2.1.8/code/admin/js/build/codemirror.js
- Raw: https://pluginprobe.com/plugins/tablepress/2.1.8/raw/admin/js/build/codemirror.js
- Modified: 2023-08-15T07:47:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tablepress/2.1.8/code/admin/js/build/codemirror.js#L10-L20`.

```javascript
!function(){"use strict";const e=wp.codeEditor.initialize("option-custom-css",{}).codemirror,t=e.getWrapperElement(),s=function(){this.classList.contains("disabled")||(this.classList.add("large"),e.refresh(),this.removeEventListener("mousedown",s))};t.addEventListener("mousedown",s);const n=document.getElementById("option-use-custom-css");n.addEventListener("change",(function(){e.setOption("readOnly",!this.checked),t.classList.toggle("disabled",!this.checked)})),n.dispatchEvent(new Event("change"))}();
```
