mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-05 07:27:09 +08:00
2 lines
13 KiB
JavaScript
2 lines
13 KiB
JavaScript
import{aw as e,y as t,z as i,b0 as o}from"./chunks/framework.BCBheFgR.js";const h=JSON.parse('{"title":"codeBlockService方法","description":"","frontmatter":{},"headers":[],"relativePath":"api/editor/codeBlockServiceMethods.md","filePath":"api/editor/codeBlockServiceMethods.md"}'),r={name:"api/editor/codeBlockServiceMethods.md"};function s(a,l,d,n,u,g){return i(),t("div",null,l[0]||(l[0]=[o('<h1 id="codeblockservice方法" tabindex="-1">codeBlockService方法 <a class="header-anchor" href="#codeblockservice方法" aria-label="Permalink to "codeBlockService方法""></a></h1><h2 id="setcodedsl" tabindex="-1">setCodeDsl <a class="header-anchor" href="#setcodedsl" aria-label="Permalink to "setCodeDsl""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="getcodedsl" tabindex="-1">getCodeDsl <a class="header-anchor" href="#getcodedsl" aria-label="Permalink to "getCodeDsl""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="getcodecontentbyid" tabindex="-1">getCodeContentById <a class="header-anchor" href="#getcodecontentbyid" aria-label="Permalink to "getCodeContentById""></a></h2><ul><li><p><strong><a href="./../../guide/editor-expand.html#行为扩展">扩展支持</a>:</strong> 是</p></li><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="setcodedslbyid" tabindex="-1">setCodeDslById <a class="header-anchor" href="#setcodedslbyid" aria-label="Permalink to "setCodeDslById""></a></h2><ul><li><p><strong><a href="./../../guide/editor-expand.html#行为扩展">扩展支持</a>:</strong> 是</p></li><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="getcodedslbyids" tabindex="-1">getCodeDslByIds <a class="header-anchor" href="#getcodedslbyids" aria-label="Permalink to "getCodeDslByIds""></a></h2><ul><li><p><strong><a href="./../../guide/editor-expand.html#行为扩展">扩展支持</a>:</strong> 是</p></li><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="setcodeeditorshowstatus" tabindex="-1">setCodeEditorShowStatus <a class="header-anchor" href="#setcodeeditorshowstatus" aria-label="Permalink to "setCodeEditorShowStatus""></a></h2><ul><li><p><strong><a href="./../../guide/editor-expand.html#行为扩展">扩展支持</a>:</strong> 是</p></li><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="getcodeeditorshowstatus" tabindex="-1">getCodeEditorShowStatus <a class="header-anchor" href="#getcodeeditorshowstatus" aria-label="Permalink to "getCodeEditorShowStatus""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="setcodeeditorcontent" tabindex="-1">setCodeEditorContent <a class="header-anchor" href="#setcodeeditorcontent" aria-label="Permalink to "setCodeEditorContent""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="getcurrentdsl" tabindex="-1">getCurrentDsl <a class="header-anchor" href="#getcurrentdsl" aria-label="Permalink to "getCurrentDsl""></a></h2><ul><li><p><strong><a href="./../../guide/editor-expand.html#行为扩展">扩展支持</a>:</strong> 是</p></li><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="geteditstatus" tabindex="-1">getEditStatus <a class="header-anchor" href="#geteditstatus" aria-label="Permalink to "getEditStatus""></a></h2><ul><li><strong><a href="./../../guide/editor-expand.html#行为扩展">扩展支持</a>:</strong> 是</li></ul><h2 id="seteditstatus" tabindex="-1">setEditStatus <a class="header-anchor" href="#seteditstatus" aria-label="Permalink to "setEditStatus""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="setid" tabindex="-1">setId <a class="header-anchor" href="#setid" aria-label="Permalink to "setId""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="getid" tabindex="-1">getId <a class="header-anchor" href="#getid" aria-label="Permalink to "getId""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="getmode" tabindex="-1">getMode <a class="header-anchor" href="#getmode" aria-label="Permalink to "getMode""></a></h2><ul><li><p><strong><a href="./../../guide/editor-expand.html#行为扩展">扩展支持</a>:</strong> 是</p></li><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="setmode" tabindex="-1">setMode <a class="header-anchor" href="#setmode" aria-label="Permalink to "setMode""></a></h2><ul><li><p><strong><a href="./../../guide/editor-expand.html#行为扩展">扩展支持</a>:</strong> 是</p></li><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="setcombineids" tabindex="-1">setCombineIds <a class="header-anchor" href="#setcombineids" aria-label="Permalink to "setCombineIds""></a></h2><ul><li><p><strong><a href="./../../guide/editor-expand.html#行为扩展">扩展支持</a>:</strong> 是</p></li><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="getcombineids" tabindex="-1">getCombineIds <a class="header-anchor" href="#getcombineids" aria-label="Permalink to "getCombineIds""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="refreshallrelations" tabindex="-1">refreshAllRelations <a class="header-anchor" href="#refreshallrelations" aria-label="Permalink to "refreshAllRelations""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="getcombineinfo" tabindex="-1">getCombineInfo <a class="header-anchor" href="#getcombineinfo" aria-label="Permalink to "getCombineInfo""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="getundeletablelist" tabindex="-1">getUndeletableList <a class="header-anchor" href="#getundeletablelist" aria-label="Permalink to "getUndeletableList""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="setundeleteablelist" tabindex="-1">setUndeleteableList <a class="header-anchor" href="#setundeleteablelist" aria-label="Permalink to "setUndeleteableList""></a></h2><ul><li><p><strong><a href="./../../guide/editor-expand.html#行为扩展">扩展支持</a>:</strong> 是</p></li><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="setcodedraft" tabindex="-1">setCodeDraft <a class="header-anchor" href="#setcodedraft" aria-label="Permalink to "setCodeDraft""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="getcodedraft" tabindex="-1">getCodeDraft <a class="header-anchor" href="#getcodedraft" aria-label="Permalink to "getCodeDraft""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="removecodedraft" tabindex="-1">removeCodeDraft <a class="header-anchor" href="#removecodedraft" aria-label="Permalink to "removeCodeDraft""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="deletecodedslbyids" tabindex="-1">deleteCodeDslByIds <a class="header-anchor" href="#deletecodedslbyids" aria-label="Permalink to "deleteCodeDslByIds""></a></h2><ul><li><p><strong><a href="./../../guide/editor-expand.html#行为扩展">扩展支持</a>:</strong> 是</p></li><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="getuniqueid" tabindex="-1">getUniqueId <a class="header-anchor" href="#getuniqueid" aria-label="Permalink to "getUniqueId""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="deletecompsinrelation" tabindex="-1">deleteCompsInRelation <a class="header-anchor" href="#deletecompsinrelation" aria-label="Permalink to "deleteCompsInRelation""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="destroy" tabindex="-1">destroy <a class="header-anchor" href="#destroy" aria-label="Permalink to "destroy""></a></h2><ul><li><p><strong>参数:</strong></p><ul><li></li></ul></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise<void>}</code></li></ul></li><li><p><strong>详情:</strong></p></li></ul><h2 id="use" tabindex="-1">use <a class="header-anchor" href="#use" aria-label="Permalink to "use""></a></h2><p>使用中间件的方式扩展方法,上述方法中标记有<code>扩展支持: 是</code>的方法都支持使用use扩展</p><h2 id="useplugin" tabindex="-1">usePlugin <a class="header-anchor" href="#useplugin" aria-label="Permalink to "usePlugin""></a></h2><ul><li><strong>详情:</strong></li></ul><p>相对于<a href="#use">use</a>, usePlugin支持更加灵活更加细致的扩展, 上述方法中标记有<code>扩展支持: 是</code>的方法都支持使用usePlugin扩展</p><p>每个支持扩展的方法都支持定制before、after两个hook来干预原有方法的行为,before可以用于修改传入参数,after可以用于修改返回的值</p><h2 id="removeallplugins" tabindex="-1">removeAllPlugins <a class="header-anchor" href="#removeallplugins" aria-label="Permalink to "removeAllPlugins""></a></h2><ul><li><strong>详情:</strong></li></ul><p>删掉当前设置的所有扩展</p>',66)]))}const c=e(r,[["render",s]]);export{h as __pageData,c as default};
|