Instead of using global JS-variables and ignoring serendipity[textarea]={$view}, this approach actually uses the variable and therefore reinstates wysiwyg_init.tpl. ckeditor_custom_config.js (Thx Ian!) is still respected, but the toolbar got restored to the old version. We need an easy way to remove _underline_, for example. It could be extended though. This fixes #{107} somewhat, as serendipity_image_selector.php is useable now, but still with display errors (and without an upload widget). Probably still a good idea to copy the ML-eapproach of the normal textareas This also works with htmlnuggets, without using spawnnugget from the core, instead wysiwyg_init.tpl gets reused in the plugin-config. ckeditor_custom_plugin.js got emptied, the relevant code (which should only be the part that adds the plugins into the toolbar) should be integrated into wysiwyg_init.tpl).
54 lines
2.3 KiB
Smarty
54 lines
2.3 KiB
Smarty
{if $showSubmit_head}
|
|
<div class="form_buttons">
|
|
{if $postKey == "template"}
|
|
<a class="button_link" href="?serendipity[adminModule]=templates">{$CONST.BACK}</a>
|
|
{/if}
|
|
<input name="SAVECONF" type="submit" value="{$CONST.SAVE}">
|
|
</div>
|
|
{/if}
|
|
{if is_array($config_groups)}
|
|
<button id="show_config_all" class="button_link" type="button" data-href="#serendipity_config_options" title="{$CONST.TOGGLE_ALL}">
|
|
<span class="icon-right-dir"></span><span class="visuallyhidden"> {$CONST.TOGGLE_ALL}</span>
|
|
</button>
|
|
|
|
<div id="serendipity_config_options">
|
|
{foreach $config_groups AS $config_header => $config_groupkeys}
|
|
<div class="configuration_group">
|
|
<h3 class="toggle_headline"><button id="optionel{$config_groupkeys@iteration}" class="show_config_option" type="button" data-href="#el{$config_groupkeys@iteration}" title="{$CONST.TOGGLE_OPTION}"><span class="icon-right-dir"></span> {$config_header}</button></h3>
|
|
|
|
<fieldset id="el{$config_groupkeys@iteration}" class="config_optiongroup{if $config_groupkeys@last} config_optiongroup_last{/if} additional_info">
|
|
{foreach $config_groupkeys AS $config_groupkey}
|
|
<div class="{cycle values='odd,even'}">
|
|
{$plugin_options[$config_groupkey]}
|
|
</div>
|
|
{/foreach}
|
|
</fieldset>
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
{/if}
|
|
|
|
{* Those are only needed if the plugin contains a config item of type sequence, liek the entryproperty-plugin *}
|
|
<script src="{serendipity_getFile file="admin/js/jquery.autoscroll.js"}"></script>
|
|
<script src="{serendipity_getFile file="admin/js/jquery.sortable.js"}"></script>
|
|
<script src="{serendipity_getFile file="admin/js/dragdrop.js"}"></script>
|
|
{foreach $plugin_options_ungrouped as $plugin_option}
|
|
<div class="configuration_group {cycle values='odd,even'}">
|
|
{$plugin_option}
|
|
</div>
|
|
{/foreach}
|
|
{if $showSubmit_foot}
|
|
<div class="form_buttons">
|
|
{if $postKey == "template"}
|
|
<a class="button_link" href="?serendipity[adminModule]=templates">{$CONST.BACK}</a>
|
|
{/if}
|
|
<input name="SAVECONF" type="submit" value="{$CONST.SAVE}">
|
|
</div>
|
|
{/if}
|
|
{if $showExample}
|
|
<div>{$plugin_example}</div>
|
|
{/if}
|
|
{if $spawnNuggets}
|
|
{serendipity_hookPlugin hook="backend_wysiwyg_nuggets" eventData=$ev hookAll=true}
|
|
{/if}
|