<?php
!defined('EMLOG_ROOT') && exit('access deined!');
function plugin_setting_view(){
$fold=substr(basename(__FILE__),0,-12);
if(isset($_GET['suc'])): ?><div class="alert alert-success">保存成功</div><?php endif;
?>
<form method="post" action="./plugin.php?plugin=<?= $fold ?>&action=setting">
<textarea name="options" style="width:100%;height:400px;padding:5px;" placeholder="TinyMCE：配置覆写，默认留空。">
<?= stripslashes(Storage::getInstance('emlog_tinymce')->getValue('options')) ?>
</textarea>
<input type="button" onclick="if(confirm('如果崩了，清空配置，再次保存。')){submitForm(this.form);}" style="width:100%;height:50px;" value="保存" />
<div style="text-align:right">
<a href="https://www.tiny.cloud/" target="_blank"><b>TinyMCE</b></a>
<a href="../content/plugins/<?= $fold ?>/core/license.md" target="_blank"><b>License</b></a>
</div>
</form>
<?php } function plugin_setting(){Storage::getInstance('emlog_tinymce')->setValue('options',Input::postStrVar('options'));Output::ok();}