[{"data":1,"prerenderedAt":229},["ShallowReactive",2],{"example:\u002Fen\u002Fexamples\u002Fplugins":3},{"id":4,"title":5,"body":6,"description":220,"extension":221,"meta":222,"navigation":224,"path":225,"seo":226,"stem":227,"__hash__":228},"examples_en\u002Fen\u002Fexamples\u002Fplugins.md","Text helpers",{"type":7,"value":8,"toc":215},"minimark",[9,14,29,33,36,194,198,211],[10,11,13],"h2",{"id":12},"local-setup","Local setup",[15,16,17,18,23,24,28],"p",{},"Script integration is available through the ",[19,20,22],"a",{"href":21},"\u002Fen\u002Fdocs\u002Finstallation\u002Fscript","browser archive",". For ESM, use ",[25,26,27],"code",{},"npm install @vitext-ru\u002Feditor@beta",". The live example above runs in an isolated browser document; no document data is sent to a server.",[10,30,32],{"id":31},"workflow","Workflow",[15,34,35],{},"Edit the document and inspect its applied HTML. Tools use the same default configuration as the builder. The toolbar example intentionally moves selected tools into an explicit *** menu. The plugin example uses Pro, since plugins are unavailable in Simple\u002FBase. The Markdown example awaits conversion before consuming HTML. Invalid source keeps the previous applied version.",[37,38,43],"pre",{"className":39,"code":40,"language":41,"meta":42,"style":42},"language-ts shiki shiki-themes github-dark","import { ViText, createWordCountPlugin, createTextCasePlugin,\n createTypographyPlugin, createSearchReplacePlugin,\n createSpellcheckPlugin, createCharacterLimitPlugin } from '@vitext-ru\u002Feditor';\nconst editor = new ViText('#editor', {\n preset: 'pro', language: 'en',\n plugins: [createWordCountPlugin(), createTextCasePlugin(),\n  createTypographyPlugin(), createSearchReplacePlugin(),\n  createSpellcheckPlugin({ language: 'en-US' }),\n  createCharacterLimitPlugin({ limit: 300 })]\n});\n","ts","",[25,44,45,58,64,80,109,127,145,158,173,188],{"__ignoreMap":42},[46,47,50,54],"span",{"class":48,"line":49},"line",1,[46,51,53],{"class":52},"snl16","import",[46,55,57],{"class":56},"s95oV"," { ViText, createWordCountPlugin, createTextCasePlugin,\n",[46,59,61],{"class":48,"line":60},2,[46,62,63],{"class":56}," createTypographyPlugin, createSearchReplacePlugin,\n",[46,65,67,70,73,77],{"class":48,"line":66},3,[46,68,69],{"class":56}," createSpellcheckPlugin, createCharacterLimitPlugin } ",[46,71,72],{"class":52},"from",[46,74,76],{"class":75},"sU2Wk"," '@vitext-ru\u002Feditor'",[46,78,79],{"class":56},";\n",[46,81,83,86,90,93,96,100,103,106],{"class":48,"line":82},4,[46,84,85],{"class":52},"const",[46,87,89],{"class":88},"sDLfK"," editor",[46,91,92],{"class":52}," =",[46,94,95],{"class":52}," new",[46,97,99],{"class":98},"svObZ"," ViText",[46,101,102],{"class":56},"(",[46,104,105],{"class":75},"'#editor'",[46,107,108],{"class":56},", {\n",[46,110,112,115,118,121,124],{"class":48,"line":111},5,[46,113,114],{"class":56}," preset: ",[46,116,117],{"class":75},"'pro'",[46,119,120],{"class":56},", language: ",[46,122,123],{"class":75},"'en'",[46,125,126],{"class":56},",\n",[46,128,130,133,136,139,142],{"class":48,"line":129},6,[46,131,132],{"class":56}," plugins: [",[46,134,135],{"class":98},"createWordCountPlugin",[46,137,138],{"class":56},"(), ",[46,140,141],{"class":98},"createTextCasePlugin",[46,143,144],{"class":56},"(),\n",[46,146,148,151,153,156],{"class":48,"line":147},7,[46,149,150],{"class":98},"  createTypographyPlugin",[46,152,138],{"class":56},[46,154,155],{"class":98},"createSearchReplacePlugin",[46,157,144],{"class":56},[46,159,161,164,167,170],{"class":48,"line":160},8,[46,162,163],{"class":98},"  createSpellcheckPlugin",[46,165,166],{"class":56},"({ language: ",[46,168,169],{"class":75},"'en-US'",[46,171,172],{"class":56}," }),\n",[46,174,176,179,182,185],{"class":48,"line":175},9,[46,177,178],{"class":98},"  createCharacterLimitPlugin",[46,180,181],{"class":56},"({ limit: ",[46,183,184],{"class":88},"300",[46,186,187],{"class":56}," })]\n",[46,189,191],{"class":48,"line":190},10,[46,192,193],{"class":56},"});\n",[10,195,197],{"id":196},"integration-and-cleanup","Integration and cleanup",[15,199,200,201,205,206,210],{},"Destroy the instance before unmounting, and await asynchronous imports\u002Fstyles. Your application owns storage, authentication and uploads. ",[19,202,204],{"href":203},"\u002Fen\u002Fdocs\u002Fgetting-started","Integration guide",". ",[19,207,209],{"href":208},"\u002Fexamples-live\u002Fplugins\u002Findex.html?lang=en","Open separately",". The browser archive includes a standalone script example.",[212,213,214],"style",{},"html pre.shiki code .snl16, html code.shiki .snl16{--shiki-default:#F97583}html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":42,"searchDepth":60,"depth":60,"links":216},[217,218,219],{"id":12,"depth":60,"text":13},{"id":31,"depth":60,"text":32},{"id":196,"depth":60,"text":197},"Word count, text case, typography, search, spellcheck and limits.","md",{"group":223,"order":129},"Plugins",true,"\u002Fen\u002Fexamples\u002Fplugins",{"title":5,"description":220},"en\u002Fexamples\u002Fplugins","t1b2gQie9XDXFa__37sdif3lrViMXlcUqr5Nu6T_YIM",1792670389622]