1
0

Remove inline JS to hide editor tools.

This commit is contained in:
Matthias Mees
2013-06-14 09:26:36 +02:00
parent cdeb113846
commit 11853c6f5b
2 changed files with 2 additions and 8 deletions

View File

@ -36,10 +36,7 @@
<div class="form_area">
<label for="serendipity[body]">{$CONST.ENTRY_BODY}</label>
{if NOT $entry_vars.wysiwyg}
<div id="tools_entry" class="editor_toolbar" style="display: none">
{* This whole button bar should be replaced by something external, which maybe even
"reacts" to installed markup plugins. I.e. if a blog uses Markdown, the button for
italic should not insert an em element but the appropriate Markdown formatting. *}
<div id="tools_entry" class="editor_toolbar">
{if $entry_vars.wysiwyg_advanced}
{if $iso2br}
<input type="button" name="insX" value="NoBR" accesskey="x" onclick="wrapSelection(document.forms['serendipityEntry']['serendipity[body]'],'<nl>','</nl>')">
@ -63,10 +60,6 @@
<input type="button" value="Link" onclick="serendipity_insLink(document.forms['serendipityEntry']['serendipity[body]'])">
{/if}
</div>
<script>
var toolbarentry = document.getElementById('tools_entry');
toolbarentry.style.display = '';
</script>
{/if}
{serendipity_hookPlugin hook="backend_entry_toolbar_body" data=$entry_data.entry hookAll="true"}
<textarea id="serendipity[body]" name="serendipity[body]" rows="20">{$entry_vars.entry.body|@escape}</textarea>

View File

@ -1647,6 +1647,7 @@ form > .button_link:first-of-type {
}
.no-js .comment_summary,
.no-js .editor_toolbar,
.js .additional_info {
display: none;
visibility: hidden;