luwes / craft-codemirror

Add the awesome in-browser code editor CodeMirror as a field type.
MIT License
18 stars 10 forks source link

[Bug] Content not shown when field is on a secondary tab #6

Closed mattcdavis1 closed 5 years ago

mattcdavis1 commented 6 years ago

When a CodeMirror field is assigned to a non-default tab, the content of the field will not show until you click in the field.

richhayler commented 5 years ago

Give this a go, it worked for me....

edit your CodeMirror config file to include the following add-on and autoRefresh setting.

return [ "jsOptions" => [ "autoRefresh" => true, ], "addons" => [ "display/autorefresh", ] ];

luwes commented 5 years ago

Duplicate of #10