<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                [ckeditor5 官網](https://docs.ckeditor.com/ckeditor5/latest/index.html) # 安裝 npm 安裝ckeditor5 使用的 10.1.0版本 ``` npm install --save @ckeditor/ckeditor5-build-classic ``` # vue 頁面使用 ## html ``` <textarea id="editor" name="editor" v-model="ruleForm.content"></textarea> ``` ## 導入 ``` import ClassicEditor from '@ckeditor/ckeditor5-build-classic'; ``` ## 初始化使用 ``` mounted() { let that = this; if (this.editorStatus == null && document.querySelector('#editor')) { this.editorStatus = "success"; ClassicEditor .create(document.querySelector('#editor'), { ckfinder: { // url 是上傳圖片的路徑 // 后臺至少返回兩個參數 // uploaded 1 表示上傳成功 // url 表示編輯器中存放的img標簽的src路徑 uploadUrl: 'url?command=QuickUpload&type=Files&responseType=json' }, toolbar: [ 'heading', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo', 'imageUpload' ], image: { toolbar: [ 'imageTextAlternative', '|', 'imageStyle:alignLeft', 'imageStyle:full', 'imageStyle:alignRight' ], styles: [ 'full', 'alignLeft', 'alignRight' ] } }) .then(editor => { that.editor = editor; }) .catch(error => { console.error(error); }); } }, ``` ## 提交表單 this.editor.getData(); 用于獲取編輯器內容 ``` // 提交表單 submitForm(formName) { this.ruleForm.content = this.editor.getData(); let that = this; this.$refs[formName].validate((valid) => { if (valid) { this.$axios.post('url', { title: this.ruleForm.title, content: this.ruleForm.content }) .then(function(response) { }) } }); } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看