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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 模塊 <!-- Modules allow Quill's behavior and functionality to be customized. Several officially supported modules are available to pick and choose from, some with additional configuration options and APIs. Refer to their respective 文檔 pages for more details. --> 通過模塊可以自定義Quill的行為和功能。官方提供了幾個可選模塊,其中一些支持附加的設置選項和API。具體詳情可參考各自的文檔。 <!-- To enable a module, simply include it in Quill's configuration. --> 只需要在Quill的配置中包含對應模塊即可啟用。 ```javascript var quill = new Quill('#editor', { modules: { 'history': { // Enable with custom configurations 'delay': 2500, 'userOnly': true }, 'syntax': true // Enable with default configuration } }); ``` <!-- The [Clipboard](/docs/modules/clipboard/), [Keyboard](/docs/modules/keyboard/), and [History](/docs/modules/history/) modules are required by Quill and do not need to be included explictly, but may be configured like any other module. --> Quill已經內置了[Clipboard](modules/粘貼板clipboard.md)、[Keyboard](modules/鍵盤keyboard.md)和[History](modules/歷史記錄history.md) 模塊,不需要再顯示的包含,但需要像其他模塊一樣設置。 ## 繼承 <!-- Modules may also be extended and re-registered, replacing the original module. Even required modules may be re-registered and replaced. --> 模塊可以被繼承和重寫來替換原來的模塊,甚至內置模塊也可以被重寫和替換。 ```javascript var Clipboard = Quill.import('modules/clipboard'); var Delta = Quill.import('delta'); class PlainClipboard extends Clipboard { convert(html = null) { if (typeof html === 'string') { this.container.innerHTML = html; } let text = this.container.innerText; this.container.innerHTML = ''; return new Delta().insert(text); } } Quill.register('modules/clipboard', PlainClipboard, true); // Will be created with instance of PlainClipboard var quill = new Quill('#editor'); ``` <!-- *Note: This particular example was selected to show what is possible. It is often easier to just use an API or configuration the existing module exposes. In this example, the existing Clipboard's [addMatcher](/docs/modules/clipboard/#addmatcher) API is suitable for most paste customization scenarios.* --> *注意:選擇這個示例只是為了展示其用法,使用現有模塊的API和配置通常更簡單。 在這個示例里面,Clipboard的[addMatcher](modules/粘貼板clipboard.md)接口就能滿足大部分自定義粘貼應用場景。*
                  <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>

                              哎呀哎呀视频在线观看