Skip to content
This repository was archived by the owner on Feb 4, 2024. It is now read-only.

Commit 5693db3

Browse files
committed
Enable Visual Editor by default
1 parent 36857e3 commit 5693db3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

resources/templates/main.mustache

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@
3535
</div>
3636
</li>
3737
<li id="page-tools" class="tool">
38-
<a href="{{{content_navigation.views.edit.href}}}" title="{{content_navigation.views.edit.text}}" role="button" aria-haspopup="menu" aria-label="{{content_navigation.views.edit.text}}" uk-icon="icon: pencil"></a>
38+
{{! Use Visual Editor if available, otherwise regular text field}}
39+
{{#content_navigation.views.ve-edit}}
40+
<a id=ca-edit href="{{{content_navigation.views.ve-edit.href}}}" title="{{content_navigation.views.ve-edit.text}}" role="button" aria-haspopup="menu" aria-label="{{content_navigation.views.ve-edit.text}}" uk-icon="icon: pencil"></a>
41+
{{/content_navigation.views.ve-edit}}
42+
{{^content_navigation.views.ve-edit}}
43+
<a id=ca-edit href="{{{content_navigation.views.edit.href}}}" title="{{content_navigation.views.edit.text}}" role="button" aria-haspopup="menu" aria-label="{{content_navigation.views.edit.text}}" uk-icon="icon: pencil"></a>
44+
{{/content_navigation.views.ve-edit}}
3945
<div class="uk-navbar-dropdown uk-navbar-dropdown-width-2"> {{! BUG: uk-navbar-dropdown isn't 2-columns wide }}
4046
{{! TODO: Add code to remove some of these and modify the namespace displayed in h1 for the rest (sp. policy, guideline and essay) }}
4147
{{#if watch_indicator}}<div uk-grid><a href={{{watch_indicator.href}}}>{{{watch_indicator.text}}}</a></div>{{/if}}

0 commit comments

Comments
 (0)