getCompiled()->isFresh($_smarty_tpl, array ( 'version' => '5.3.1', 'unifunc' => 'content_675a77af3299a8_29003265', 'has_nocache_code' => false, 'file_dependency' => array ( '7a13b3b01a6337c946d3b11a6d1e7924cdea4e55' => array ( 0 => 'admin/announcement/edit.tpl', 1 => 1712762115, 2 => 'file', ), ), 'includes' => array ( 'file:admin/header.tpl' => 1, 'file:admin/footer.tpl' => 1, ), ))) { function content_675a77af3299a8_29003265 (\Smarty\Template $_smarty_tpl) { $_smarty_current_dir = '/www/wwwroot/xiaofu.cloud/resources/views/tabler/admin/announcement'; $_smarty_tpl->renderSubTemplate('file:admin/header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir); ?> src="//cdnjs.cloudflare.com/ajax/libs/tinymce/7.0.0/tinymce.min.js"> >
> document.addEventListener("DOMContentLoaded", function () { let options = { selector: '#tinymce', menubar: false, statusbar: false, plugins: 'advlist autolink lists link image charmap preview anchor searchreplace visualblocks ' + 'code insertdatetime media table', toolbar: 'undo redo | bold italic backcolor link | styles | fontsize | lineheight | alignleft aligncenter ' + 'alignright alignjustify | bullist numlist outdent indent | removeformat', content_style: 'body { font-size: 14px; }', getValue('user')->is_dark_mode) {?> skin: 'oxide-dark', content_css: 'dark', } tinyMCE.init(options); }) $("#save-ann").click(function () { $.ajax({ url: '/admin/announcement/' + getValue('ann')->id;?> , type: 'PUT', dataType: "json", data: { content: tinyMCE.activeEditor.getContent(), }, success: function (data) { if (data.ret === 1) { $('#success-message').text(data.msg); $('#success-dialog').modal('show'); window.setTimeout("location.href=top.document.referrer", getValue('config')['jump_delay'];?> ); } else { $('#fail-message').text(data.msg); $('#fail-dialog').modal('show'); } } }) }); > renderSubTemplate('file:admin/footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir); } }