forked from laysense/laysite
Fix canvas formatting persistence and editor interactions
This commit is contained in:
@@ -31,6 +31,12 @@ $active = match (true) {
|
||||
<link rel="stylesheet" href="/assets/page-template-drawer.css">
|
||||
<script src="/assets/page-template-drawer.js" defer></script>
|
||||
<?php endif ?>
|
||||
<?php if (!empty($canvasSourceEditor)): ?>
|
||||
<link rel="stylesheet" href="/assets/vendor/codemirror/codemirror.min.css">
|
||||
<script src="/assets/vendor/codemirror/codemirror.min.js" defer></script>
|
||||
<script src="/assets/vendor/codemirror/xml.min.js" defer></script>
|
||||
<script src="/assets/vendor/js-beautify/beautify-html.min.js" defer></script>
|
||||
<?php endif ?>
|
||||
<?php if (!empty($articleEditor)): ?>
|
||||
<link rel="stylesheet" href="/assets/vendor/toastui/toastui-editor.min.css">
|
||||
<script src="<?= $e(Assets::TOAST_UI_EDITOR) ?>" defer></script>
|
||||
@@ -78,7 +84,21 @@ $active = match (true) {
|
||||
<label>查找资源<input type="search" data-media-query placeholder="搜索文件名或资源路径"></label>
|
||||
<p data-picker-status role="status"></p>
|
||||
<div class="picker-grid" data-picker-items></div>
|
||||
<a class="back-link" href="/admin/media" target="_blank" rel="noopener noreferrer">打开媒体库上传</a>
|
||||
<div class="actions picker-actions">
|
||||
<button class="button button-outline" type="button" data-refresh-picker><?= View::fragment('studio-icon', ['icon' => 'refresh']) ?>刷新资源</button>
|
||||
<a class="back-link" href="/admin/media" target="_blank" rel="noopener noreferrer">打开媒体库上传</a>
|
||||
</div>
|
||||
</dialog>
|
||||
<dialog class="media-picker admin-action-dialog" id="admin-action-dialog" aria-labelledby="admin-action-heading">
|
||||
<form class="admin-form" method="dialog">
|
||||
<h2 id="admin-action-heading" data-action-title></h2>
|
||||
<p data-action-message hidden></p>
|
||||
<label data-action-field hidden><span data-action-label></span><input data-action-value></label>
|
||||
<div class="actions">
|
||||
<button class="button button-primary" data-action-accept value="accept" type="submit">确定</button>
|
||||
<button class="button button-outline" data-action-cancel type="button">取消</button>
|
||||
</div>
|
||||
</form>
|
||||
</dialog>
|
||||
<?php endif ?>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user