雷闳焜:完成富文本编辑器的部分,由于下载引入老出问题,暂时用云调用

This commit is contained in:
Lhk0001
2023-11-23 16:59:07 +08:00
parent 912d6b2a7e
commit 78aeee5871
2 changed files with 6 additions and 9 deletions

View File

@@ -59,6 +59,6 @@
margin-right: 10px;
}
}
.tox,.tox-tinymce{
.tox-tinymce{
width: 700px;
}

View File

@@ -85,17 +85,14 @@ interface queryParamsType {
let thisrole: any = {};
export default function Inform() {
const editorInit = {
// selector:'textarea',
language: "zh_CN",
min_height: 400,
plugins:
"print preview searchreplace autolink directionality visualblocks visualchars fullscreen image link media template code codesample table charmap hr pagebreak nonbreaking anchor insertdatetime advlist lists wordcount imagetools textpattern help emoticons autosave bdmap indent2em autoresize formatpainter axupimgs",
toolbar:
"code undo redo restoredraft | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough link | anchor | alignleft aligncenter alignright alignjustify outdent indent | \
["code undo redo restoredraft | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough link | anchor | alignleft aligncenter alignright alignjustify outdent indent | \
styleselect formatselect fontselect fontsizeselect | bullist numlist | blockquote subscript superscript removeformat | \
table image media charmap emoticons hr pagebreak insertdatetime print preview | fullscreen | bdmap indent2em lineheight formatpainter axupimgs",
width: "100%",
height: 650,
min_height: 400,
table image media charmap emoticons hr pagebreak insertdatetime print preview | fullscreen | bdmap indent2em lineheight formatpainter axupimgs"],
importcss_append: true,
//自定义文件选择器的回调内容
// file_picker_callback: function (callback, value, meta) {
@@ -744,14 +741,14 @@ export default function Inform() {
<Form.Item name="noticeContent" label="公告内容">
<Row>
<div>
<Editor
apiKey="v4zo4n22oanvco29ws5drh0pecuf3gh53clx53cccj3grjwg"
initialValue=""
init={editorInit}
value={editorValue}
onEditorChange={(Value)=>onEditorChange(Value)}
></Editor>
></Editor></div>
</Row>
</Form.Item>
</Form>