<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 常用 API ## 屬性 - 獲取編輯器的唯一標識 `editor.id` - 獲取編輯區域 DOM 節點 `editor.$textElem[0]` - 獲取菜單欄 DOM 節點 `editor.$toolbarElem[0]` - 獲取編輯器配置信息 `editor.config` - 獲取編輯區域 DOM 節點 ID `editor.textElemId` - 獲取菜單欄 DOM 節點 ID `editor.toolbarElemId` - 獲取菜單欄中“圖片”菜單的 DOM 節點 ID `editor.imgMenuId` ## 方法 ### 選取操作 - 獲取選中的文字 `editor.selection.getSelectionText()` - 獲取選取所在的 DOM 節點 `editor.selection.getSelectionContainerElem()[0]` - 開始節點 `editor.selection.getSelectionStartElem()[0]` - 結束節點 `editor.selection.getSelectionEndElem()[0]` - 折疊選取 `editor.selection.collapseRange()` - 更多可參見[源碼中](https://github.com/wangfupeng1988/wangEditor/blob/master/src/js/selection/index.js)定義的方法 ### 編輯內容操作 - 插入 HTML `editor.cmd.do('insertHTML', '<p>...</p>')` - 可通過`editor.cmd.do(name, value)`來執行`document.execCommand(name, false, value)`的操作
                  <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>

                              哎呀哎呀视频在线观看