no message
This commit is contained in:
@@ -8,11 +8,55 @@
|
||||
<title>发布主题</title>
|
||||
<link href="https://framework.x-php.com/gter/forum/css/normalize.min.css" rel="stylesheet">
|
||||
<link href="https://framework.x-php.com/gter/forum/css/editorStyle.css" rel="stylesheet">
|
||||
<script src="https://framework.x-php.com/gter/forum/js/vue.global.js"></script>
|
||||
<link rel="stylesheet" href="/css/textbus.min.css">
|
||||
<script src="https://framework.x-php.com/gter/forum/js/vue.global.js"></script>
|
||||
<script src="/js/textbus.min.js"></script>
|
||||
<!-- <link rel="stylesheet" href="https://unpkg.com/@textbus/editor/bundles/textbus.min.css"> -->
|
||||
<!-- <script src="https://unpkg.com/@textbus/editor/bundles/textbus.min.js"></script> -->
|
||||
|
||||
<style>
|
||||
/* 隐藏 TextBus 工具栏按钮 */
|
||||
/* 由于我们无法确定具体的 class 且 JS 配置可能未生效,我们尝试使用更通用的属性选择器 */
|
||||
|
||||
/* 音频 */
|
||||
.textbus-toolbar-btn[title="音频"],
|
||||
.textbus-toolbar-btn[title="插入音频"],
|
||||
.textbus-toolbar-btn:has(.textbus-icon-music) {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* 源代码 */
|
||||
.textbus-toolbar-btn[title="源代码"],
|
||||
.textbus-toolbar-btn[title="查看源码"],
|
||||
.textbus-toolbar-btn:has(.textbus-icon-code) {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* 组件库 */
|
||||
.textbus-toolbar-btn[title="组件库"],
|
||||
.textbus-toolbar-btn:has(.textbus-icon-components) {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* 插入段落/其他 */
|
||||
.textbus-toolbar-btn[title="插入段落"],
|
||||
.textbus-toolbar-btn:has(.textbus-icon-paragraph) {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* 清除格式 */
|
||||
.textbus-toolbar-btn[title="清除格式"],
|
||||
.textbus-toolbar-btn:has(.textbus-icon-clean) {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* 格式刷 */
|
||||
.textbus-toolbar-btn[title="格式刷"],
|
||||
.textbus-toolbar-btn:has(.textbus-icon-brush) {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
|
||||
html,
|
||||
body {
|
||||
background-color: #fff;
|
||||
@@ -50,7 +94,7 @@
|
||||
width: 100vh;
|
||||
margin: 20px auto 20px auto;
|
||||
background-color: #fff;
|
||||
padding: 10px;
|
||||
/* padding: 10px; */
|
||||
border: 1px solid #e8e8e8;
|
||||
box-shadow: 0 2px 10px rgb(0 0 0 / 12%);
|
||||
}
|
||||
@@ -66,18 +110,30 @@
|
||||
outline: none;
|
||||
width: 100%;
|
||||
line-height: 1;
|
||||
padding: 0 20px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.textbus-toolbar-wrapper {
|
||||
border-radius: 0;
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
#editor-text-area {
|
||||
margin-top: 20px;
|
||||
/* margin-top: 20px; */
|
||||
/* height: 500px; */
|
||||
/* max-height: 80vh; */
|
||||
height: calc(100vh - 370px);
|
||||
height: calc(100vh - 310px);
|
||||
font-size: 18px;
|
||||
line-height: 1.5;
|
||||
color: rgb(51, 51, 51);
|
||||
}
|
||||
|
||||
.textbus-container {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.bottom-bar {
|
||||
@@ -217,22 +273,24 @@
|
||||
|
||||
<div class="bottom-bar action-buttons flexacenter">
|
||||
<div class="left-section flexacenter" @click="cutAnonymity">
|
||||
<img v-if="info.anonymous == 1" class="icon-pitch" src="https://framework.x-php.com/gter/forum/img/tick-box.svg" />
|
||||
<img v-if="info.anonymous == 1" class="icon-pitch"
|
||||
src="https://framework.x-php.com/gter/forum/img/tick-box.svg" />
|
||||
<div v-else class="icon"></div>
|
||||
<div class="text">匿名发布</div>
|
||||
</div>
|
||||
|
||||
<div class="right-section flexcenter">
|
||||
<div class="draft-btn flexcenter" @click="submit(0)"><img class="icon" src="https://framework.x-php.com/gter/forum/img/draft-icon.png?v=iem44eqj4HfC"> 存草稿 </div>
|
||||
<div class="draft-btn flexcenter" @click="submit(0)"><img class="icon"
|
||||
src="https://framework.x-php.com/gter/forum/img/draft-icon.png?v=iem44eqj4HfC"> 存草稿 </div>
|
||||
<div id="save-btn" class="publish-btn flexcenter" @click="submit(1)">保存</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="module" src="https://framework.x-php.com/gter/forum/js/editor.js"></script>
|
||||
<!-- <script type="module" src="https://framework.x-php.com/gter/forum/js/editor.js"></script> -->
|
||||
<script src="https://framework.x-php.com/gter/forum/js/axios.min.js"></script>
|
||||
<script src="https://framework.x-php.com/gter/forum/js/public.js"></script>
|
||||
<script type="module" src="https://framework.x-php.com/gter/forum/js/publish_admin.js"></script>
|
||||
<script type="module" src="/js/publish_admin.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user