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

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ## Markdown編輯器 內部使用 [editor.md](https://pandao.github.io/editor.md/) 開源編輯器實現。 [TOC] ## 使用方法 ![](https://box.kancloud.cn/fde79123a61cceb282225aed790c413c_1406x734.png) ~~~ <div id="editormd"><textarea name="content" hidden>初始內容</textarea></div> <script> require(['hdjs'], function (hdjs) { hdjs.markdown("editormd", { width: '100%', heigth: 300, callback:function(editormd){ //編輯器對象 console.log(editormd); } }); }); </script> ~~~ 第二個參數是選項,可以根據需要自行設置其他選項 ## 顯示內容 ~~~ <script> require(['hdjs', 'marked', 'highlight'], function (hdjs, marked) { marked.setOptions({ renderer: new marked.Renderer(), highlight: function (code) { return hljs.highlightAuto(code).value; }, pedantic: true, gfm: true, tables: true, breaks: false, sanitize: false, smartLists: true, smartypants: false, xhtml: false }); $('.markdown').each(function (i, md) { $(md).html($.trim(marked($(md).find('textarea').val()))); }) hljs.initHighlightingOnLoad(); }) </script> ~~~ 如果不能正常解析參考以下代碼(去除行首空白): ~~~ <div class="markdown"> <textarea hidden>{{ preg_replace('@(^\s*)@m','',$hdcms['content']) }}</textarea> </div> ~~~ 第三個參數為內容變量 ## 替換內容 ~~~ editormd.setSelection({line:0, ch:0}, {line:9999, ch:9999}); editormd.replaceSelection(""); ~~~ editormd為編輯器對象,需要在callback中獲得
                  <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>

                              哎呀哎呀视频在线观看