<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國際加速解決方案。 廣告
                有幾位使用者提到在編輯其中增加背景圖片的功能,經過思考和參考其他成熟產品,覺得背景圖片并不適合在編輯器中直接集成。 編輯器本身要保證編輯出來的內容的純粹行,能在編輯器外面控制的東西,盡量在外面控制,例如上傳附件(上面的章節提到過這個問題)。從設計原則和設計模式上,也提倡這種單一職責和開放封閉,這樣才能保證系統的可擴展性。 ----- 實現背景圖片,你完全可以參考QQ郵箱的『信紙』功能。如下圖: ![](https://box.kancloud.cn/2016-02-28_56d26e28e647e.png) 編輯器內容使用編輯器單獨控制,而信紙在右側單獨控制。當保存內容時,富文本內容單獨保存,信紙的圖片地址也單獨保存。顯示內容時,用一個容器包含富文本,然后在容器上單獨加上保存的信紙圖片(作為背景圖片)即可。 這是大體的過程。 ---- 還剩下一個問題,就是在編輯內容時,選擇了信紙,如何立即讓信紙作為背景圖片成現在編輯區域?這個其實很簡單: ```js // 選擇了信紙之后,執行以下語句 editor.$txt.css('background-img', 'url(./bgimg/a.png)'); ``` 至于其他的`background`樣式,自己在以上語句中自由控制即可。 但是注意:以上語句為`editor.$txt`設置了背景圖片,是不會作為編輯器內容被獲取的,信紙還得單獨保存。
                  <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>

                              哎呀哎呀视频在线观看