mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-14 09:16:05 +01:00
Instead of requiring an option to disable preview, disable by default. Enable on demand.
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
'<div class="grav-mdeditor-navbar-flip">',
|
||||
'<ul class="grav-mdeditor-navbar-nav">'];
|
||||
|
||||
if (!$this.element.data('grav-preview-disabled')) {
|
||||
if ($this.element.data('grav-preview-enabled')) {
|
||||
template.push('<li class="grav-mdeditor-button-code mdeditor-active"><a>{:lblCodeview}</a></li>');
|
||||
template.push('<li class="grav-mdeditor-button-preview"><a>{:lblPreview}</a></li>');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user