Editor toolbar back to working as intended. Fixes #168, thanks for reporting in this detailled manner!
This commit is contained in:
parent
185a27d35d
commit
9218d118c9
@ -35,9 +35,7 @@
|
|||||||
<p>
|
<p>
|
||||||
<label for="content">{$panelstrings.content}</label>
|
<label for="content">{$panelstrings.content}</label>
|
||||||
</p>
|
</p>
|
||||||
{if function_exists('plugin_bbcode_init')}
|
{toolbar}
|
||||||
{include file='plugin:bbcode/toolbar'}
|
|
||||||
{/if}
|
|
||||||
<p>
|
<p>
|
||||||
<textarea name="content" class="{$class}"
|
<textarea name="content" class="{$class}"
|
||||||
id="content" rows="20" cols="74">{$content|default:{$smarty.request.content|default:''}|htmlspecialchars}</textarea><br />
|
id="content" rows="20" cols="74">{$content|default:{$smarty.request.content|default:''}|htmlspecialchars}</textarea><br />
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<input type="text" name="subject" id="subject" value="{$subject|default:$smarty.request.subject}" /><br />
|
<input type="text" name="subject" id="subject" value="{$subject|default:$smarty.request.subject}" /><br />
|
||||||
<input type="hidden" name="timestamp" value="{$date}" />
|
<input type="hidden" name="timestamp" value="{$date}" />
|
||||||
</p>
|
</p>
|
||||||
{toolbar}
|
{toolbar}
|
||||||
<p>
|
<p>
|
||||||
<label for="content">{$panelstrings.content}</label><br />
|
<label for="content">{$panelstrings.content}</label><br />
|
||||||
<textarea name="content" id="content" rows="20" cols="74"{$content|default:$smarty.request.content}</textarea><br />
|
<textarea name="content" id="content" rows="20" cols="74"{$content|default:$smarty.request.content}</textarea><br />
|
||||||
|
@ -30,9 +30,7 @@
|
|||||||
<p>
|
<p>
|
||||||
<label for="content">{$panelstrings.content}</label>
|
<label for="content">{$panelstrings.content}</label>
|
||||||
</p>
|
</p>
|
||||||
{if function_exists('plugin_bbcode_init')}
|
{toolbar}
|
||||||
{include file='plugin:bbcode/toolbar'}
|
|
||||||
{/if}
|
|
||||||
<p>
|
<p>
|
||||||
{if isset($error) && isset($error.content) && !empty($error.content)}
|
{if isset($error) && isset($error.content) && !empty($error.content)}
|
||||||
{assign var=class value=" field-error"}
|
{assign var=class value=" field-error"}
|
||||||
|
@ -46,8 +46,7 @@ function plugin_bbcode_startup() {
|
|||||||
add_filter('the_content', 'plugin_bbcode_undoHtml', 30);
|
add_filter('the_content', 'plugin_bbcode_undoHtml', 30);
|
||||||
if (BBCODE_USE_EDITOR) {
|
if (BBCODE_USE_EDITOR) {
|
||||||
// initialize the toolbar
|
// initialize the toolbar
|
||||||
add_filter('editor_toolbar', 'plugin_bbcode_toolbar');
|
add_filter('editor_toolbar', 'plugin_bbcode_init_toolbar');
|
||||||
plugin_bbcode_init_toolbar();
|
|
||||||
}
|
}
|
||||||
if (BBCODE_ENABLE_COMMENTS) {
|
if (BBCODE_ENABLE_COMMENTS) {
|
||||||
add_filter('comment_text', 'plugin_bbcode_comment', 1);
|
add_filter('comment_text', 'plugin_bbcode_comment', 1);
|
||||||
@ -784,6 +783,8 @@ function plugin_bbcode_init_toolbar() {
|
|||||||
sort($attachslist);
|
sort($attachslist);
|
||||||
array_unshift($attachslist, '--');
|
array_unshift($attachslist, '--');
|
||||||
$_FP_SMARTY->assign('attachs_list', $attachslist);
|
$_FP_SMARTY->assign('attachs_list', $attachslist);
|
||||||
|
|
||||||
|
echo $_FP_SMARTY->fetch('plugin:bbcode/toolbar');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user