zhupei 1 年間 前
コミット
5f452de363
86 ファイル変更426 行追加426 行削除
  1. 8 8
      docs/.vitepress/config.ts
  2. 8 8
      docs/.vitepress/theme/MyEditor.vue
  3. 1 1
      docs/.vitepress/theme/MyLayout.vue
  4. 5 5
      docs/ai/base.md
  5. 1 1
      docs/ai/codeblock.md
  6. 1 1
      docs/ai/command.md
  7. 9 9
      docs/ai/llm.md
  8. 4 4
      docs/ai/menu.md
  9. 1 1
      docs/ai/prompt.md
  10. 1 1
      docs/ai/translate.md
  11. 7 7
      docs/aieditor-with-layui.md
  12. 10 10
      docs/aieditor-with-react.md
  13. 7 7
      docs/aieditor-with-svelte.md
  14. 6 6
      docs/aieditor-with-vue2.md
  15. 15 15
      docs/aieditor-with-vue3.md
  16. 9 9
      docs/api/aieditor.md
  17. 23 23
      docs/changes.md
  18. 2 2
      docs/config/attachment.md
  19. 2 2
      docs/config/base.md
  20. 6 6
      docs/config/bubbleMenu.md
  21. 1 1
      docs/config/codeblock.md
  22. 1 1
      docs/config/collaboration.md
  23. 2 2
      docs/config/comment.md
  24. 2 2
      docs/config/container.md
  25. 4 4
      docs/config/editable.md
  26. 1 1
      docs/config/fontFamily.md
  27. 2 2
      docs/config/fontSize.md
  28. 4 4
      docs/config/i18n.md
  29. 4 4
      docs/config/image.md
  30. 10 10
      docs/config/layout.md
  31. 1 1
      docs/config/lineHeight.md
  32. 1 1
      docs/config/link.md
  33. 2 2
      docs/config/mention.md
  34. 1 1
      docs/config/paste.md
  35. 2 2
      docs/config/shortcut.md
  36. 9 9
      docs/config/theme.md
  37. 10 10
      docs/config/toolbar.md
  38. 2 2
      docs/config/video.md
  39. 2 2
      docs/contact-us-bak.md
  40. 5 5
      docs/demo-bak.md
  41. 3 3
      docs/getting-started.md
  42. 3 3
      docs/index.md
  43. 9 9
      docs/versions.md
  44. 8 8
      docs/what-is-ai-editor.md
  45. 6 6
      docs/zh/ai/base.md
  46. 1 1
      docs/zh/ai/codeblock.md
  47. 1 1
      docs/zh/ai/command.md
  48. 9 9
      docs/zh/ai/llm.md
  49. 4 4
      docs/zh/ai/menu.md
  50. 1 1
      docs/zh/ai/prompt.md
  51. 1 1
      docs/zh/ai/translate.md
  52. 7 7
      docs/zh/aieditor-with-layui.md
  53. 10 10
      docs/zh/aieditor-with-react.md
  54. 7 7
      docs/zh/aieditor-with-svelte.md
  55. 6 6
      docs/zh/aieditor-with-vue2.md
  56. 15 15
      docs/zh/aieditor-with-vue3.md
  57. 10 10
      docs/zh/api/aieditor.md
  58. 23 23
      docs/zh/changes.md
  59. 2 2
      docs/zh/config/attachment.md
  60. 2 2
      docs/zh/config/base.md
  61. 6 6
      docs/zh/config/bubbleMenu.md
  62. 1 1
      docs/zh/config/codeblock.md
  63. 1 1
      docs/zh/config/collaboration.md
  64. 2 2
      docs/zh/config/comment.md
  65. 2 2
      docs/zh/config/container.md
  66. 4 4
      docs/zh/config/editable.md
  67. 1 1
      docs/zh/config/fontFamily.md
  68. 2 2
      docs/zh/config/fontSize.md
  69. 4 4
      docs/zh/config/i18n.md
  70. 4 4
      docs/zh/config/image.md
  71. 10 10
      docs/zh/config/layout.md
  72. 1 1
      docs/zh/config/lineHeight.md
  73. 1 1
      docs/zh/config/link.md
  74. 2 2
      docs/zh/config/mention.md
  75. 1 1
      docs/zh/config/paste.md
  76. 2 2
      docs/zh/config/shortcut.md
  77. 9 9
      docs/zh/config/theme.md
  78. 10 10
      docs/zh/config/toolbar.md
  79. 2 2
      docs/zh/config/video.md
  80. 2 2
      docs/zh/contact-us-bak.md
  81. 5 5
      docs/zh/demo-bak.md
  82. 3 3
      docs/zh/getting-started.md
  83. 3 3
      docs/zh/index.md
  84. 11 11
      docs/zh/pro.md
  85. 9 9
      docs/zh/versions.md
  86. 8 8
      docs/zh/what-is-ai-editor.md

+ 8 - 8
docs/.vitepress/config.ts

@@ -43,7 +43,7 @@ export default defineConfig({
     title: "AIEditor",
     base: '/docs/',
     description: "A next-generation rich text editor for AI, open-source rich text editor, modern rich text editor",
-    titleTemplate: ':title - AiEditor',
+    titleTemplate: ':title - LinwitDocEditor',
     lastUpdated: true,
     sitemap: {
         hostname: domain,
@@ -58,7 +58,7 @@ export default defineConfig({
         zh: {
             title: "AIEditor",
             description: "一个面向 AI 的下一代富文本编辑器,开源富文本编辑器,现代富文本编辑器",
-            titleTemplate: ':title - AiEditor 富文本编辑器',
+            titleTemplate: ':title - LinwitDocEditor 富文本编辑器',
             label: '简体中文',
             lang: 'zh', // 可选,将作为 `lang` 属性添加到 `html` 标签中
             themeConfig: {
@@ -66,7 +66,7 @@ export default defineConfig({
                     label: "章节"
                 },
                 editLink: {
-                    pattern: 'https://github.com/aieditor-team/AiEditor/edit/main/docs/:path',
+                    pattern: 'https://github.com/aieditor-team/LinwitDocEditor/edit/main/docs/:path',
                     text: '编辑当前页面'
                 },
 
@@ -88,7 +88,7 @@ export default defineConfig({
                     {
                         text: '简介',
                         items: [
-                            {text: 'AiEditor 是什么', link: '/zh/what-is-ai-editor'},
+                            {text: 'LinwitDocEditor 是什么', link: '/zh/what-is-ai-editor'},
                             {text: '快速开始', link: '/zh/getting-started'},
                             {text: '与 React 整合', link: '/zh/aieditor-with-react'},
                             {text: '与 Vue3 整合', link: '/zh/aieditor-with-vue3'},
@@ -139,7 +139,7 @@ export default defineConfig({
                     {
                         text: 'API',
                         items: [
-                            {text: 'AiEditor', link: '/zh/api/aieditor'},
+                            {text: 'LinwitDocEditor', link: '/zh/api/aieditor'},
                         ]
                     },
                 ],
@@ -180,7 +180,7 @@ export default defineConfig({
             {
                 text: 'introduction',
                 items: [
-                    {text: 'What is AiEditor', link: '/what-is-ai-editor'},
+                    {text: 'What is LinwitDocEditor', link: '/what-is-ai-editor'},
                     {text: 'Quick Start', link: '/getting-started'},
                     {text: 'Integrate with React', link: '/aieditor-with-react'},
                     {text: 'Integrate with Vue3', link: '/aieditor-with-vue3'},
@@ -230,13 +230,13 @@ export default defineConfig({
             {
                 text: 'API',
                 items: [
-                    {text: 'AiEditor', link: '/api/aieditor'},
+                    {text: 'LinwitDocEditor', link: '/api/aieditor'},
                 ]
             },
         ],
 
         footer: {
-            message: 'Released under the LGPL-v2.1 License. Copyright © 2023-present AiEditor.  ',
+            message: 'Released under the LGPL-v2.1 License. Copyright © 2023-present LinwitDocEditor.  ',
             copyright: '<a href="/disclaimer.html" target="_blank">Disclaimer (免责声明)</a> 黔ICP备19009310号-15 ',
         },
     },

+ 8 - 8
docs/.vitepress/theme/MyEditor.vue

@@ -5,7 +5,7 @@
 </template>
 
 <script setup lang="ts">
-// import {AiEditor} from "aieditor";
+// import {LinwitDocEditor} from "aieditor";
 import "aieditor/dist/style.css"
 import {onMounted, onUnmounted, ref} from "vue";
 import {config} from "./spark";
@@ -16,19 +16,19 @@ const divRef = ref();
 let aiEditor: any = null;
 
 const  content = `
-AiEditor is a next-generation rich text editor for AI. It is developed based on Web Component and therefore supports almost any front-end framework such as Vue, React, Angular, Svelte, etc. It is adapted to PC Web and mobile terminals, and provides two themes: light and dark. In addition, it also provides flexible configuration, and developers can easily use it to develop any text editing application.
+LinwitDocEditor is a next-generation rich text editor for AI. It is developed based on Web Component and therefore supports almost any front-end framework such as Vue, React, Angular, Svelte, etc. It is adapted to PC Web and mobile terminals, and provides two themes: light and dark. In addition, it also provides flexible configuration, and developers can easily use it to develop any text editing application.
 
-Positioning of AiEditor
+Positioning of LinwitDocEditor
 
-- Our original intention in developing AiEditor was to solve AI editing problems. Therefore, in terms of AI, AiEditor supports the use of private apiKey to connect to any LLMs, including ChatGPT, iFlytek Spark and any privatized LLM.
-- We hope that AiEditor has more usage scenarios and is not limited to any UI rendering framework, such as Vue, React, Angular, Svelte, etc. Therefore, we developed it based on Web Component, which can be well integrated with any framework.
+- Our original intention in developing LinwitDocEditor was to solve AI editing problems. Therefore, in terms of AI, LinwitDocEditor supports the use of private apiKey to connect to any LLMs, including ChatGPT, iFlytek Spark and any privatized LLM.
+- We hope that LinwitDocEditor has more usage scenarios and is not limited to any UI rendering framework, such as Vue, React, Angular, Svelte, etc. Therefore, we developed it based on Web Component, which can be well integrated with any framework.
 - We provide a friendly UI, support two themes, light and dark, support the writing habit of using Markdown, support flexible function configuration and custom layout, and use the open source protocol LGPL, which is more friendly than CKEditor and TinyMCE.
-- In addition, we will continue to learn from excellent products, such as Notion, etc., to provide a series of useful AI functions... Of course, AiEditor is still evolving, and we need your support.
+- In addition, we will continue to learn from excellent products, such as Notion, etc., to provide a series of useful AI functions... Of course, LinwitDocEditor is still evolving, and we need your support.
 `
 
 onMounted(() => {
   //for ssr
-  import('aieditor').then(({AiEditor}) => {
+  import('aieditor').then(({LinwitDocEditor}) => {
 
     const menus: any = lang === "en" ?
             [
@@ -52,7 +52,7 @@ onMounted(() => {
               },
             ] : null,
 
-        aiEditor = new AiEditor({
+        aiEditor = new LinwitDocEditor({
           element: divRef.value as Element,
           placeholder: "Click to Input Content...",
           content,

+ 1 - 1
docs/.vitepress/theme/MyLayout.vue

@@ -39,7 +39,7 @@ const {lang} = useData()
 <!--        <a href="https://www.producthunt.com/posts/aieditor?embed=true&utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-aieditor"-->
 <!--           target="_blank"><img-->
 <!--            src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=469676&theme=light&period=daily"-->
-<!--            alt="AiEditor - An&#0032;open&#0032;source&#0032;AI&#0045;powered&#0032;rich&#0032;text&#0032;editor | Product Hunt"-->
+<!--            alt="LinwitDocEditor - An&#0032;open&#0032;source&#0032;AI&#0045;powered&#0032;rich&#0032;text&#0032;editor | Product Hunt"-->
 <!--            style="width: 250px; height: 54px;" width="250" height="54"/></a>-->
 <!--      </div>-->
 <!--    </template>-->

+ 5 - 5
docs/ai/base.md

@@ -6,7 +6,7 @@
 use ChatGPT
 
 ```ts
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {
@@ -21,7 +21,7 @@ new AiEditor({
 OR other LLMs
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai:{
         models:{
@@ -67,7 +67,7 @@ version?: string,
 ## Server-side signature
 
 
-When using AiEditor for internal users, it's acceptable to configure the model's `appId`, `apiKey`, and `apiSecret` on the frontend. 
+When using LinwitDocEditor for internal users, it's acceptable to configure the model's `appId`, `apiKey`, and `apiSecret` on the frontend. 
 
 However, for ordinary internet users, `appId`, `apiKey`, and `apiSecret` should not be configured on the frontend. Instead, they should be signed through backend services for Ai request paths. Custom configuration of `onCreateClientUrl` is required to ensure key security.
 
@@ -75,7 +75,7 @@ However, for ordinary internet users, `appId`, `apiKey`, and `apiSecret` should
 Samples:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai:{
         models:{
@@ -105,7 +105,7 @@ new AiEditor({
 sample:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {

+ 1 - 1
docs/ai/codeblock.md

@@ -9,7 +9,7 @@ In the code component, there are two AI functionalities related to  `"AI comment
 The above functions need to be configured for AI, and the configuration code is as follows:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai:{
         codeBlock: {

+ 1 - 1
docs/ai/command.md

@@ -5,7 +5,7 @@ AI Command refers to the AI menu that `space + '/'` pops up by typing in the tex
 ## Sample
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai:{
         models:{

+ 9 - 9
docs/ai/llm.md

@@ -1,12 +1,12 @@
 # Large language models
 
-Currently, AiEditor supports the `Openai(ChatGPT)`, `Spark large model`, `Wenxin Yiyuan`  and `custom LLMs`.
+Currently, LinwitDocEditor supports the `Openai(ChatGPT)`, `Spark large model`, `Wenxin Yiyuan`  and `custom LLMs`.
 
 ##
 
 
 ```ts
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {
@@ -21,7 +21,7 @@ new AiEditor({
 Or use `moonshot` through Openai's config
 
 ```ts
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {
@@ -38,7 +38,7 @@ new AiEditor({
 Note that in the above configuration, AIEditor will automatically request the URL `https://api.moonshot.cn/v1/chat/completions` for AI dialogue. If the address of the current large model is not `endpoint` + `/v1/chat/completions`, we need to configure `customUrl`, as shown in the following code:
 
 ```ts
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {
@@ -56,7 +56,7 @@ new AiEditor({
 ## Spark large
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {
@@ -75,7 +75,7 @@ new AiEditor({
 ## Wenxin Yiyuan
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {
@@ -94,7 +94,7 @@ new AiEditor({
  Gitee AI's serverless API is used for support currently.
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {
@@ -110,7 +110,7 @@ new AiEditor({
 More Gitee AI configurations, such as:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {
@@ -131,7 +131,7 @@ new AiEditor({
 ## custom backend types of LLMs
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {

+ 4 - 4
docs/ai/menu.md

@@ -9,7 +9,7 @@ AI menu configuration, used to display the menu content when clicking AI in the
 Toolbar menu configuration sample code
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai:{
         // models:{...]
@@ -34,7 +34,7 @@ new AiEditor({
 ```
 
 
-- **icon**: Icon used for menu display, currently only supports SVG configuration. It's recommended to use SVG icons provided by https://remixicon.com to ensure consistency with AiEditor's icon style.
+- **icon**: Icon used for menu display, currently only supports SVG configuration. It's recommended to use SVG icons provided by https://remixicon.com to ensure consistency with LinwitDocEditor's icon style.
 - **name**: Name of the AI menu.
 - **prompt**: AI prompt message.
 - **text**: Text content, supports `"focusBefore"` and `"selected"` options; `"focusBefore"` indicates getting the text content before the current focus, `"selected"` indicates getting the currently selected text content.
@@ -51,7 +51,7 @@ new AiEditor({
 Configuration example code:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai:{
         // models:{...]
@@ -83,5 +83,5 @@ new AiEditor({
 ```
 
 - **prompt**: AI prompt
-- **icon**: Icon used for menu display, currently only supports svg configuration, svg icon is recommended to use the icon provided by https://remixicon.com to ensure consistency with AiEditor icon style.
+- **icon**: Icon used for menu display, currently only supports svg configuration, svg icon is recommended to use the icon provided by https://remixicon.com to ensure consistency with LinwitDocEditor icon style.
 - **title**: Name of the AI menu

+ 1 - 1
docs/ai/prompt.md

@@ -4,7 +4,7 @@
 In AIEditor, `AI menu`, `AI command`, and `AI code block` can all be configured with custom prompt words. For example, the menu configuration is as follows
 
 ```ts
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai:{
         // models:{...]

+ 1 - 1
docs/ai/translate.md

@@ -9,7 +9,7 @@ AI translation means that after selecting a text, you can translate its content.
 If we need to configure the default translation language, the configuration code is as follows:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         translate: {

+ 7 - 7
docs/aieditor-with-layui.md

@@ -1,12 +1,12 @@
-# AiEditor integrates with traditional frameworks such as Layui and JQuery
+# LinwitDocEditor integrates with traditional frameworks such as Layui and JQuery
 
 
 
-AiEditor integrates with traditional development frameworks in 3 steps:
+LinwitDocEditor integrates with traditional development frameworks in 3 steps:
 
 - 1. Download `aieditor` the `js` sum of `css` , download address:https://gitee.com/aieditor-team/aieditor/tree/main/dist.
 - 2. Through `aieditor` the `link` `css` imported style file.
-- 3. `<script type="module">` Import `js` and initialize `aieditor` `AiEditor` the instance.
+- 3. `<script type="module">` Import `js` and initialize `aieditor` `LinwitDocEditor` the instance.
 
 The code looks like this:
 
@@ -14,16 +14,16 @@ The code looks like this:
 <!doctype html>
 <html lang="en">
 <head>
-    <title>AiEditor Demo</title>
+    <title>LinwitDocEditor Demo</title>
     <meta charset="UTF-8"/>
     <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
     <link type="text/css" rel="stylesheet" href="aieditor/style.css">
     <script type="module">
-        import {AiEditor} from 'aieditor/index.js'
-        new AiEditor({
+        import {LinwitDocEditor} from 'aieditor/index.js'
+        new LinwitDocEditor({
             element: "#aiEditor",
             placeholder: "Click to Input Content...",
-            content: 'AiEditor is an Open Source Rich Text Editor Designed for AI.',
+            content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI.',
             ai: {
                 models: {
                     spark: {

+ 10 - 10
docs/aieditor-with-react.md

@@ -1,10 +1,10 @@
-# AiEditor integrates with React
+# LinwitDocEditor integrates with React
 
-In React, we get the dom node by using `useRef` a hook, and then instantiate it with `new AiEditor` , the sample code is as follows:
+In React, we get the dom node by using `useRef` a hook, and then instantiate it with `new LinwitDocEditor` , the sample code is as follows:
 
 ```jsx
 import {useEffect, useRef} from 'react'
-import {AiEditor} from "aieditor";
+import {LinwitDocEditor} from "aieditor";
 import "aieditor/dist/style.css"
 
 function App() {
@@ -12,13 +12,13 @@ function App() {
     //Define Ref
     const divRef = useRef(null);
 
-    //Initialization AiEditor
+    //Initialization LinwitDocEditor
     useEffect(() => {
         if (divRef.current) {
-            const aiEditor = new AiEditor({
+            const aiEditor = new LinwitDocEditor({
                 element: divRef.current,
                 placeholder: "Click to Input Content...",
-                content: 'AiEditor is an Open Source Rich Text Editor Designed for AI. ',
+                content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI. ',
             })
             return ()=>{
                 aiEditor.destroy();
@@ -29,7 +29,7 @@ function App() {
     return (
         <>
             <div>
-                <h1>AiEditor, an Open Source Rich Text Editor Designed for AI</h1>
+                <h1>LinwitDocEditor, an Open Source Rich Text Editor Designed for AI</h1>
             </div>
             <div ref={divRef} style={{height: "600px"}} />
         </>
@@ -44,7 +44,7 @@ export default App
 ```jsx
 // "use client"; // Next.JS
 
-import { AiEditor, AiEditorOptions } from "aieditor";
+import { LinwitDocEditor, AiEditorOptions } from "aieditor";
 import "aieditor/dist/style.css";
 
 import { HTMLAttributes, forwardRef, useEffect, useRef } from "react";
@@ -69,13 +69,13 @@ export default forwardRef<HTMLDivElement, AIEditorProps>(function AIEditor(
   ref
 ) {
   const divRef = useRef<HTMLDivElement>(null);
-  const aiEditorRef = useRef<AiEditor | null>(null);
+  const aiEditorRef = useRef<LinwitDocEditor | null>(null);
 
   useEffect(() => {
     if (!divRef.current) return;
 
     if (!aiEditorRef.current) {
-      const aiEditor = new AiEditor({
+      const aiEditor = new LinwitDocEditor({
         element: divRef.current,
         placeholder: placeholder,
         content: defaultValue,

+ 7 - 7
docs/aieditor-with-svelte.md

@@ -1,4 +1,4 @@
-# AiEditor integrates with Svelte
+# LinwitDocEditor integrates with Svelte
 
 
 In Svelte, the sample code for using AIEditor is as follows:
@@ -8,15 +8,15 @@ In Svelte, the sample code for using AIEditor is as follows:
 <script lang="ts">
     import {onDestroy, onMount} from 'svelte';
     import "aieditor/dist/style.css"
-    import type {AiEditor} from "aieditor";
+    import type {LinwitDocEditor} from "aieditor";
 
-    let aieditor: AiEditor;
+    let aieditor: LinwitDocEditor;
     onMount(async () => {
-        import('aieditor').then(({AiEditor}) => {
-            aieditor = new AiEditor({
+        import('aieditor').then(({LinwitDocEditor}) => {
+            aieditor = new LinwitDocEditor({
                 element: "#editor",
                 placeholder: "Click to Input Content...",
-                content: 'AiEditor is an Open Source Rich Text Editor Designed for AI. ',
+                content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI. ',
             })
         })
     });
@@ -42,4 +42,4 @@ In Svelte, the sample code for using AIEditor is as follows:
 </style>
 ```
 
-The code is at: https://github.com/aieditor-team/AiEditor/tree/main/demos/svelte-ts
+The code is at: https://github.com/aieditor-team/LinwitDocEditor/tree/main/demos/svelte-ts

+ 6 - 6
docs/aieditor-with-vue2.md

@@ -1,24 +1,24 @@
-# AiEditor integrates with Vue2
+# LinwitDocEditor integrates with Vue2
 
-In Vue, we use `div` a reference from a `ref` `$refs` property definition and then instantiate with `new AiEditor` , as shown in the sample code:
+In Vue, we use `div` a reference from a `ref` `$refs` property definition and then instantiate with `new LinwitDocEditor` , as shown in the sample code:
 
 ```html
 <template>
     <div>
-        <h1>AiEditor is an Open Source Rich Text Editor Designed for AI. </h1>
+        <h1>LinwitDocEditor is an Open Source Rich Text Editor Designed for AI. </h1>
     </div>
     <div ref="divRef" style="height: 600px"/>
 </template>
 
 <script lang="ts">
-    import {AiEditor} from "aieditor";
+    import {LinwitDocEditor} from "aieditor";
     import "aieditor/dist/style.css"
     export default {
         mounted(){
-            new AiEditor({
+            new LinwitDocEditor({
                 element: this.$refs.divRef as Element,
                 placeholder: "Click to Input Content...",
-                content: 'AiEditor is an Open Source Rich Text Editor Designed for AI.  ',
+                content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI.  ',
             })
         }
     }

+ 15 - 15
docs/aieditor-with-vue3.md

@@ -1,24 +1,24 @@
-# AiEditor integrates with Vue3
+# LinwitDocEditor integrates with Vue3
 
-In Vue, we use `div` a reference from a `ref` `$refs` property definition and then instantiate with `new AiEditor` , as shown in the sample code:
+In Vue, we use `div` a reference from a `ref` `$refs` property definition and then instantiate with `new LinwitDocEditor` , as shown in the sample code:
 
 ```html
 <template>
     <div>
-        <h1>AiEditor is an Open Source Rich Text Editor Designed for AI.</h1>
+        <h1>LinwitDocEditor is an Open Source Rich Text Editor Designed for AI.</h1>
     </div>
     <div ref="divRef" style="height: 600px"/>
 </template>
 
 <script lang="ts">
-    import {AiEditor} from "aieditor";
+    import {LinwitDocEditor} from "aieditor";
     import "aieditor/dist/style.css"
     export default {
         mounted(){
-            new AiEditor({
+            new LinwitDocEditor({
                 element: this.$refs.divRef as Element,
                 placeholder: "Click to Input Content...",
-                content: 'AiEditor is an Open Source Rich Text Editor Designed for AI.  ',
+                content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI.  ',
             })
         }
     }
@@ -30,24 +30,24 @@ Or use `vue` the `setup` syntax:
 ```vue
 <template>
   <div>
-    <h1>AiEditor is an Open Source Rich Text Editor Designed for AI. </h1>
+    <h1>LinwitDocEditor is an Open Source Rich Text Editor Designed for AI. </h1>
   </div>
   <div ref="divRef" style="height: 600px"/>
 </template>
 
 <script setup lang="ts">
-import {AiEditor} from "aieditor";
+import {LinwitDocEditor} from "aieditor";
 import "aieditor/dist/style.css"
 import {onMounted, onUnmounted, ref} from "vue";
 
 const divRef = ref();
-let aiEditor: AiEditor | null = null;
+let aiEditor: LinwitDocEditor | null = null;
 
 onMounted(() => {
-  aiEditor = new AiEditor({
+  aiEditor = new LinwitDocEditor({
     element: divRef.value as Element,
     placeholder: "Click to Input Content...",
-    content: 'AiEditor is an Open Source Rich Text Editor Designed for AI.  ',
+    content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI.  ',
   })
 })
 
@@ -72,7 +72,7 @@ Regarding SSR reference documents: https://vuejs.org/guide/scaling-up/ssr.html#s
 </template>
 
 <script setup lang="ts">
-// import {AiEditor} from "aieditor";
+// import {LinwitDocEditor} from "aieditor";
 import "aieditor/dist/style.css"
 import {onMounted, onUnmounted, ref} from "vue";
 
@@ -81,11 +81,11 @@ let aiEditor: any = null;
 
 onMounted(() => {
   //for ssr
-  import('aieditor').then(({AiEditor}) => {
-    aiEditor = new AiEditor({
+  import('aieditor').then(({LinwitDocEditor}) => {
+    aiEditor = new LinwitDocEditor({
       element: divRef.value as Element,
       placeholder: "Click to Input Content...",
-      content: 'AiEditor is an Open Source Rich Text Editor Designed for AI.  ',
+      content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI.  ',
     })
   })
 })

+ 9 - 9
docs/api/aieditor.md

@@ -2,10 +2,10 @@
 
 ## Initialize
 
-AiEditor is the core class of the entire editor, and its initialization code is as follows:
+LinwitDocEditor is the core class of the entire editor, and its initialization code is as follows:
 
 ```typescript
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to Input Content...",
 })
@@ -16,7 +16,7 @@ const aiEditor = new AiEditor({
 Sample:
 
 ```typescript
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to Input Content...",
 })
@@ -26,7 +26,7 @@ const html = aiEditor.getHtml();
 console.log(html)
 ```
 
-AiEditor provides the following methods:
+LinwitDocEditor provides the following methods:
 
 - `getHtml()`: Get the HTML content of the current editor.
 - `getJson()`: Get the JSON description data of the current editor.
@@ -94,7 +94,7 @@ In the above outline content, each field's meaning is as follows:
 
 ## content change
 ```typescript
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to Input Content...",
     onChange:(aiEditor)=>{
@@ -108,7 +108,7 @@ const aiEditor = new AiEditor({
 ### AIEditor get focus
 
 ```typescript
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to Input Content...",
     onFocus:(aiEditor)=>{
@@ -120,7 +120,7 @@ const aiEditor = new AiEditor({
 ### AIEditor Instance Destroy On Blur
 
 ```typescript
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to Input Content...",
     onBlur:(aiEditor)=>{
@@ -133,7 +133,7 @@ const aiEditor = new AiEditor({
 ### AIEditor Instance Created
 
 ```typescript
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to Input Content...",
     onCreated:(aiEditor)=>{
@@ -145,7 +145,7 @@ const aiEditor = new AiEditor({
 ### AIEditor Instance Destroy
 
 ```typescript
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to Input Content...",
     onDestroy:(aiEditor)=>{

+ 23 - 23
docs/changes.md

@@ -1,4 +1,4 @@
-# AiEditor ChangeLog
+# LinwitDocEditor ChangeLog
 
 
 ## v1.3.5 20250212:
@@ -231,14 +231,14 @@
 
 ## v1.1.7 20241002:
 - feat: add SmoothAppender for textarea
-- refactor: optimize AiEditor.onTransaction() method
+- refactor: optimize LinwitDocEditor.onTransaction() method
 - refactor: rename "PasteExt" extension Name to adapter v2.8.0
 - refactor: optimize BubbleMenuPlugin.ts
 - refactor: update linkBubbleMenu pluginKey's name
 
 ---
 - 新增: 新增 SmoothAppender 使得 AI 输入更加湿滑
-- 优化: 优化 AiEditor.onTransaction() 的相关代码
+- 优化: 优化 LinwitDocEditor.onTransaction() 的相关代码
 - 优化: 重命名 "PasteExt" 插件的名称以适配 v2.8.0
 - 优化: 优化 BubbleMenuPlugin.ts 的核心逻辑
 - 优化: 重命名 linkBubbleMenu 插件的名称
@@ -247,9 +247,9 @@
 
 ## v1.1.6 20240928:
 - feat: Hide the emoji panel when clicking an emoji.
-- feat: add html paste config and close https://github.com/aieditor-team/AiEditor/issues/92
+- feat: add html paste config and close https://github.com/aieditor-team/LinwitDocEditor/issues/92
 - refactor: add icons in Translate action buttons
-- fix: cat not show bubble menu on Cmd+A text selection command, close https://github.com/aieditor-team/AiEditor/issues/91
+- fix: cat not show bubble menu on Cmd+A text selection command, close https://github.com/aieditor-team/LinwitDocEditor/issues/91
 
 ---
 - 优化:当点击 emoji 表情的时候,隐藏 emoji 面板
@@ -292,7 +292,7 @@
 - feat: add de and pt langs, thanks to @TobiasKrais
 - feat: add Emoji config support
 - fix: fix GiteeAiModel parse ai message error
-- refactor: optimize AiEditor.ts and Header.ts
+- refactor: optimize LinwitDocEditor.ts and Header.ts
 - refactor: optimize styles in Emoji.ts/Heading.ts/AbstractDropdownMenuButton.ts, thanks to @TobiasKrais
 - refactor: optimize ai panel position
 - chore: create npm-publish.yml
@@ -305,7 +305,7 @@
 - 新增: 新增德语和葡萄牙语的配置,感谢 @TobiasKrais
 - 新增: 新增 emoji 自定义配置的功能
 - 修复: 修复 GiteeAiModel 在某些情况下解析错误的问题
-- 优化: 优化 AiEditor.ts 及 Header.ts 代码
+- 优化: 优化 LinwitDocEditor.ts 及 Header.ts 代码
 - 优化: 优化 Emoji.ts/Heading.ts/AbstractDropdownMenuButton.ts 的样式代码, @TobiasKrais
 - 优化: 优化 文字选中以及 ai 弹出菜单的位置
 - 优化: 创建 npm-publish.yml 用于自动发布的功能
@@ -493,7 +493,7 @@
 - 优化:选中空白内容,但为选中任何文字时,错误的弹出操作菜单的问题
 - 优化:更新相关的依赖到最新版本
 - 修复:AI 菜单在某些场景下出现错位的问题,感谢 @monksoul
-- 文档:添加 React 对 AiEditor 的封装为组件的相关文档,感谢 @monksoul
+- 文档:添加 React 对 LinwitDocEditor 的封装为组件的相关文档,感谢 @monksoul
 
 
 
@@ -539,7 +539,7 @@
 ## v1.0.0-rc.7 20240109:
 - 新增:添加当 uploader 的 onUploadBefore 返回 false 时,中断文件上传
 - 新增:Ai 模块添加自定义 AiModelFactory 的配置,方便引用第三方 Ai 大模型
-- 优化:修改  AiEditor.insert 的参数为 any 类型
+- 优化:修改  LinwitDocEditor.insert 的参数为 any 类型
 - 优化:重命名 AiModelFactory 为 AiModelManager
 - 修复:修改全屏按钮在某些情况下不起作用的问题,感谢 @ashuicoder
 - 修复:高亮块、链接、引用获得焦点时,菜单没有被激活的问题
@@ -570,7 +570,7 @@
 
 
 ## v1.0.0-rc.4 20231222:
-- 修复:当 AiEditor 嵌入到 Form 时,点击某些按钮会触发 Form 提交的问题
+- 修复:当 LinwitDocEditor 嵌入到 Form 时,点击某些按钮会触发 Form 提交的问题
 - 修复:从网页复制的内容粘贴到编辑器,图片无法被粘贴进来的问题
 - 修复:点击表格、图片时,会有多个弹出菜单位置冲突的问题
 
@@ -578,9 +578,9 @@
 
 ## v1.0.0-rc.2 20231220:
 - 新增:自定义菜单添加 id 和 className 类名配置的支持
-- 新增:AiEditor 添加 onDestroy 监听的配置支持
+- 新增:LinwitDocEditor 添加 onDestroy 监听的配置支持
 - 优化:上传组件重命名 onBeforeUpload 为 onUploadBefore
-- 修复:在 React 的 StrictMode 下,无法使用 AiEditor 自定义布局的问题
+- 修复:在 React 的 StrictMode 下,无法使用 LinwitDocEditor 自定义布局的问题
 - 文档:添加自定义布局的相关文档内容
 
 
@@ -588,7 +588,7 @@
 ## v1.0.0-rc.1 20231219:
 - 新增:AI 功能添加选择文字时,对文字进行在定义 Prompt 操作的功能
 - 新增:添加选中文字内容时,弹出操作菜单的功能
-- 新增:AiEditor 添加 onCreateBefore 的钩子函数,方便初始化插件
+- 新增:LinwitDocEditor 添加 onCreateBefore 的钩子函数,方便初始化插件
 - 修复:同一个页面下,初始化多个 editor 实例时出错的问题
 - 修复:修复保持 html 后,通过 html 再次初始化编辑器无法准确解析视频组件的问题
 - 优化:重构 AbstractBubbleMenu.ts 的相关属性和逻辑
@@ -611,7 +611,7 @@
 - 新增:“链接” 功能添加自定义 ref、class 等配置的支持
 - 新增:添加头部、编辑区的自定义布局支持
 - 新增:添加 “类腾讯文档” 风格的 demo 示例代码
-- 新增:AiEditor 添加 "onCreated" 方法用于监听初始化
+- 新增:LinwitDocEditor 添加 "onCreated" 方法用于监听初始化
 - 优化:优化 aiEditor 和其他应用使用,在打印内容时可能出现内容错乱的问题
 - 优化:重命名 menus 为 header,和 footer 统一命名
 - 样式:优化 “表格” 在暗色模式下显示不正确的问题
@@ -623,7 +623,7 @@
 ## v1.0.0-beta.8 20231207:
 - 新增:`代码块` 新增 AI 自动添加注释的功能
 - 新增:`代码块` 新增 AI 解释代码含义的功能
-- 新增:AiEditor 添加 `getSelectedText()` 用于获取选择的文字
+- 新增:LinwitDocEditor 添加 `getSelectedText()` 用于获取选择的文字
 - 新增:图片、视频、附件上传添加 `dataProcessor` 配置用于二次处理服务器请求的功能
 - 修复:`代码块` 在第一次初始化时,无法选择代码语言的问题
 - 样式:修改 `引用`(`blockquote`)在暗色模式下的样式问题
@@ -632,28 +632,28 @@
 
 
 ## v1.0.0-beta.7 20231204:
-- 新增:AiEditor 添加 getMarkdown() 方法,用于获得 markdown 内容
-- 新增:AiEditor 添加 getOutline() 方法,用于获得文章的目录内容
-- 新增:AiEditor.focusPos(pos) 方法用于定位当前焦点到指定位置
+- 新增:LinwitDocEditor 添加 getMarkdown() 方法,用于获得 markdown 内容
+- 新增:LinwitDocEditor 添加 getOutline() 方法,用于获得文章的目录内容
+- 新增:LinwitDocEditor.focusPos(pos) 方法用于定位当前焦点到指定位置
 - 新增:添加 "高亮块" 功能,类型 vuepress 的 `:::`
 - 修复:修改附件上传时,未配置上传 url 的情况下出现错误的问题
 - 修复:字号大小设置菜单无法设置到默认字号的问题
 - 修复:自定义 AI 菜单时,添加 4 个以上菜单会出现滚动条的问题
-- 优化:AiEditor 类合并 insertHtml 和 insertMarkdown 为 insert 方法
+- 优化:LinwitDocEditor 类合并 insertHtml 和 insertMarkdown 为 insert 方法
 - 优化:优化编辑区的链接、图片、表格的浮动菜单有警告输出的问题
 - 优化:重命名工具类的 Title 为 Heading
 - 样式:优化链接弹出编辑框网址输入栏不对齐的问题
 - 样式:弹出框等元素添加 3px 圆角,使之在 UI 效果上更精致
 - 样式:修改内容编辑区的表格有一个横向滚动条的问题
 - 样式:优化菜单中插入表格的鼠标移动样式
-- 文档:更细 AiEditor 的 API 方法列表
+- 文档:更细 LinwitDocEditor 的 API 方法列表
 - 文档:readme 添加英文版本的内容
 
 
 
 ## v1.0.0-beta.6 20231201:
 - 新增:增强对 AI 输出自动进行 markdown 转换的功能
-- 新增:AiEditor 的相关操作方法支持链式调用的功能
+- 新增:LinwitDocEditor 的相关操作方法支持链式调用的功能
 - 新增:添加 "aiEditor.insertMarkdown()" 用于插入 markdown 内容
 - 新增:支持直接粘贴 markdown 内容自动转换为可视化编辑的功能
 - 新增:增强在输入时更多的 markdown 功能转换
@@ -668,7 +668,7 @@
 - 新增:添加 1i8n 国际化支持
 - 新增:添加 vue 和 aieditor 整合的示例代码和文档
 - 新增:添加 react 和 aieditor 整合的示例代码和文档
-- 新增:AiEditor 类添加 `insert(html)`、`clear()`、`focus()`、`destroy()` 等更多方法
+- 新增:LinwitDocEditor 类添加 `insert(html)`、`clear()`、`focus()`、`destroy()` 等更多方法
 - 优化:修改菜单中选择的默认样式和图标
 - 优化:移除代码中一些无用的 log 输出
 - 修复:修复工具栏中下拉菜单无法联动默认样式的问题
@@ -691,7 +691,7 @@
 
 ## v1.0.0-beta.2 20231120:
 - 新增:添加输入 "/" 时弹出 AI 菜单的功能
-- 新增:AiEditor 添加 onChange 的回调配置
+- 新增:LinwitDocEditor 添加 onChange 的回调配置
 - 新增:星火大模型添加 ws 和 wss 协议配置的支持
 - 新增:星火大模型添加自定义 URL 数据签名的支持
 - 新增:编辑器右下角添加自由拖拽放大或缩小整个编辑器的支持

+ 2 - 2
docs/config/attachment.md

@@ -4,10 +4,10 @@
 ## Samples
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     attachment: {
-        customMenuInvoke: (editor: AiEditor) => {
+        customMenuInvoke: (editor: LinwitDocEditor) => {
         },
         uploadUrl: "https://your-domain/attachment/upload",
         uploadFormName: "attachment", //Upload File Form Name

+ 2 - 2
docs/config/base.md

@@ -3,11 +3,11 @@
 ## Samples
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to Input Content...",
     theme: "light",
-    content: 'AiEditor is an Open Source Rich Text Editor Designed for AI. ',
+    content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI. ',
     contentIsMarkdown: false,
     contentRetention: true,
     contentRetentionKey: 'ai-editor-content',

+ 6 - 6
docs/config/bubbleMenu.md

@@ -8,9 +8,9 @@ The bubble menu refers to the UI menu that pops up when the user selects a piece
 In AIEditor, we can configure the bubble menu through `textSelectionBubbleMenu`, the sample code is as follows:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
-    content: 'AiEditor is an open source rich text editor for AI.',
+    content: 'LinwitDocEditor is an open source rich text editor for AI.',
     textSelectionBubbleMenu: {
         enable: true,
         items: ["ai", "Bold", "Italic", "Underline", "Strike", "code", "comment"],
@@ -30,10 +30,10 @@ new AiEditor({
 You can use the above **items**, just pass in a `BubbleMenuItem` configuration, the sample code is as follows:
 
 ```ts
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to enter content...",
-    content: 'AiEditor is an open source rich text editor for AI.',
+    content: 'LinwitDocEditor is an open source rich text editor for AI.',
     textSelectionBubbleMenu: {
         enable: true,
         items: ["ai", "Bold", "Italic", {
@@ -63,10 +63,10 @@ AI floating menu is only supported in the `Pro Version`. After clicking the conf
 Its configuration is as follows:
 
 ```ts
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to enter content...",
-    content: 'AiEditor is an open source rich text editor for AI.',
+    content: 'LinwitDocEditor is an open source rich text editor for AI.',
     textSelectionBubbleMenu: {
         enable: true,
         items: ["ai", "Bold", "Italic", {

+ 1 - 1
docs/config/codeblock.md

@@ -3,7 +3,7 @@
 ## Sample code
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     codeBlock: {
         languages: [

+ 1 - 1
docs/config/collaboration.md

@@ -9,7 +9,7 @@ At the same time, you can see other users' nicknames, focus location and other i
 ## How to use
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     collaboration: {
         url: "ws://127.0.0.1:8080?somekey=value",

+ 2 - 2
docs/config/comment.md

@@ -8,7 +8,7 @@ The annotate function is similar to the annotate function of Word, you can selec
 ## How to Use
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     comment: {
         enable: true,
@@ -78,7 +78,7 @@ The following example code uses LocalStorage to save the comment content
 ```typescript
 const colors = ['#3f3f3f', '#938953', '#548dd4', '#95b3d7',
     '#d99694', '#c3d69b', '#b2a2c7', '#92cddc', '#fac08f'];
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     comment: {
         enable: true,

+ 2 - 2
docs/config/container.md

@@ -27,7 +27,7 @@ Or when the user only enters `:::` and then presses the Enter key, the default t
 
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     container: {
         defaultName: "warning",
@@ -42,7 +42,7 @@ The default setting is to use the "warning" type.
 Users can make more configurations through the following code:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     container: {
         typeItems: [ "default", 'info','warning','danger',]

+ 4 - 4
docs/config/editable.md

@@ -8,10 +8,10 @@ Solution 1: Set `editable:false` parameter during initialization.
 
 
 ```typescript 5
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to Input Content...",
-    content: 'AiEditor is an Open Source Rich Text Editor Designed for AI. ',
+    content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI. ',
     editable:false,
 })
 ```
@@ -19,10 +19,10 @@ new AiEditor({
 Solution 2: Set using `aiEditor.setEditable(false)` method call.
 
 ```typescript 8
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to Input Content...",
-    content: 'AiEditor is an Open Source Rich Text Editor Designed for AI. ',
+    content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI. ',
 })
 
 

+ 1 - 1
docs/config/fontFamily.md

@@ -3,7 +3,7 @@
 ## Samples
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     fontFamily:{
         values:[

+ 2 - 2
docs/config/fontSize.md

@@ -4,7 +4,7 @@
 ## Samples
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     fontSize:{
         values:[
@@ -32,7 +32,7 @@ In the above code, "name" represents the font size name, and "value" represents
 In AIEditor, the default font size is 14px. If you want to change the default font size, you need to add the following configuration:
 
 ```ts 5
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     fontSize: {
         defaultValue: 18

+ 4 - 4
docs/config/i18n.md

@@ -19,7 +19,7 @@
 ## Samples
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     lang: "zh",
     i18n: {
@@ -40,14 +40,14 @@ new AiEditor({
 - **i18n**: custom internationalization configuration.
 
 ::: warning
-AiEditor has built-in internationalization content for `zh` (Chinese) and `en` (English). You only need to configure the `lang` attribute. However, you can override the built-in content using the `i18n` configuration or add additional languages.
+LinwitDocEditor has built-in internationalization content for `zh` (Chinese) and `en` (English). You only need to configure the `lang` attribute. However, you can override the built-in content using the `i18n` configuration or add additional languages.
 :::
 
 ## Add support for other languages
 
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     lang: "otherLang",
     i18n: {
@@ -62,7 +62,7 @@ new AiEditor({
 ## Switch language
 
 ```typescript
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     lang: "zh",
     i18n: {

+ 4 - 4
docs/config/image.md

@@ -3,12 +3,12 @@
 ## Samples
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     image: {
         allowBase64: true,
         defaultSize: 350,
-        customMenuInvoke: (editor: AiEditor) => {
+        customMenuInvoke: (editor: LinwitDocEditor) => {
         },
         uploadUrl: "https://your-domain/image/upload",
         uploadFormName: "image", //Upload File Form Name
@@ -92,7 +92,7 @@ In data, in addition to returning src and alt, you can also return the following
 Typescript:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     image: {
         uploadUrl: "https://your-domain/image/upload",
@@ -124,7 +124,7 @@ Javascript:
 
 
 ```js
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     image: {
         uploadUrl: "https://your-domain/image/upload",

+ 10 - 10
docs/config/layout.md

@@ -1,6 +1,6 @@
 # Custom layouts
 
-By default, when AiEditor is initialized, it will create the editor's head menu, editing area, and bottom word count display area. As shown in the figure below:
+By default, when LinwitDocEditor is initialized, it will create the editor's head menu, editing area, and bottom word count display area. As shown in the figure below:
 
 ![](../assets/image/aieditor-areas-en.png)
 
@@ -12,16 +12,16 @@ By default, when AiEditor is initialized, it will create the editor's head menu,
 <!doctype html>
 <html lang="en">
 <head>
-    <title>AiEditor Demo</title>
+    <title>LinwitDocEditor Demo</title>
     <meta charset="UTF-8"/>
     <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
     <link type="text/css" rel="stylesheet" href="aieditor/style.css">
     <script type="module">
-        import {AiEditor} from 'aieditor/index.js'
-        new AiEditor({
+        import {LinwitDocEditor} from 'aieditor/index.js'
+        new LinwitDocEditor({
             element: "#aiEditor",
             placeholder: "Click to Input Content...",
-            content: 'AiEditor is an Open Source Rich Text Editor Designed for AI.',
+            content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI.',
         })
     </script>
 </head>
@@ -36,7 +36,7 @@ By default, when AiEditor is initialized, it will create the editor's head menu,
 ## Custom layouts
 
 
-In some scenarios, we may want to customize the entire UI layout, such as adopting a Tencent Docs-style layout (demo link: http://doc.aieditor.com.cn), or other customized layout forms. We can achieve this using AiEditor's customizable UI features.
+In some scenarios, we may want to customize the entire UI layout, such as adopting a Tencent Docs-style layout (demo link: http://doc.aieditor.com.cn), or other customized layout forms. We can achieve this using LinwitDocEditor's customizable UI features.
 
 
 
@@ -46,16 +46,16 @@ In some scenarios, we may want to customize the entire UI layout, such as adopti
 <!doctype html>
 <html lang="en">
 <head>
-    <title>AiEditor Demo</title>
+    <title>LinwitDocEditor Demo</title>
     <meta charset="UTF-8"/>
     <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
     <link type="text/css" rel="stylesheet" href="aieditor/style.css">
     <script type="module">
-        import {AiEditor} from 'aieditor/index.js'
-        new AiEditor({
+        import {LinwitDocEditor} from 'aieditor/index.js'
+        new LinwitDocEditor({
             element: "#aiEditor",
             placeholder: "Click to Input Content...",
-            content: 'AiEditor is an Open Source Rich Text Editor Designed for AI.',
+            content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI.',
         })
     </script>
 </head>

+ 1 - 1
docs/config/lineHeight.md

@@ -3,7 +3,7 @@
 ## Sample code
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     lineHeight:{
         values:["1.0", "1.1", "2.0", "..."],

+ 1 - 1
docs/config/link.md

@@ -4,7 +4,7 @@
 ## Samples
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     link: {
         autolink: true,

+ 2 - 2
docs/config/mention.md

@@ -5,7 +5,7 @@
 ## Samples
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     onMentionQuery:(query:string)=>{
         return [
@@ -42,7 +42,7 @@ new AiEditor({
 ```
 
 
-When the user types the `@` symbol in the editor, AiEditor will automatically call the `onMentionQuery` method to retrieve the user list. The parameter `query` represents the content entered by the user, for example, if the user types `@michael`, the value of `query` will be `michael`.
+When the user types the `@` symbol in the editor, LinwitDocEditor will automatically call the `onMentionQuery` method to retrieve the user list. The parameter `query` represents the content entered by the user, for example, if the user types `@michael`, the value of `query` will be `michael`.
 
 
 ## Return Promise

+ 1 - 1
docs/config/paste.md

@@ -5,7 +5,7 @@ The paste configuration here can currently only be used to configure the pasting
 ## 示例代码
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     htmlPasteConfig: {
         pasteAsText: false,

+ 2 - 2
docs/config/shortcut.md

@@ -10,10 +10,10 @@ to listen to the user's save button, and then perform our own save logic operati
 As shown in the following code:
 
 ```ts
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to enter content...",
-    onSave:(editor: AiEditor)=>{
+    onSave:(editor: LinwitDocEditor)=>{
         //Save logic operation here
     }
 })

+ 9 - 9
docs/config/theme.md

@@ -6,10 +6,10 @@ In AIEditor, we provide light theme and dark theme.
 By default, AIEditor uses light theme.
 
 ```typescript 5
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to enter content...",
-    content: 'AiEditor is an open source rich text editor for AI. ',
+    content: 'LinwitDocEditor is an open source rich text editor for AI. ',
     // theme: "light",
 })
 ```
@@ -19,10 +19,10 @@ new AiEditor({
 You can enable the dark theme by configuring `theme: "dark"`.
 
 ```typescript 5
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to enter content...",
-    content: 'AiEditor is an open source rich text editor for AI. ',
+    content: 'LinwitDocEditor is an open source rich text editor for AI. ',
     theme: "dark",
 })
 ```
@@ -30,10 +30,10 @@ new AiEditor({
 ## Change Theme
 
 ```typescript 5
-const eidtor = new AiEditor({
+const eidtor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to enter content...",
-    content: 'AiEditor is an open source rich text editor for AI. ',
+    content: 'LinwitDocEditor is an open source rich text editor for AI. ',
 })
 
 // If the current theme is light, switch to dark; if it is dark, switch to light.
@@ -133,11 +133,11 @@ The code to initialize AIEditor is as follows:
 <!doctype html>
 <html lang="en">
 <head>
-    <title>AiEditor Demo</title>
+    <title>LinwitDocEditor Demo</title>
     <link type="text/css" rel="stylesheet" href="aieditor/style.css">
     <script type="module">
-        import {AiEditor} from 'aieditor/index.js'
-        new AiEditor({
+        import {LinwitDocEditor} from 'aieditor/index.js'
+        new LinwitDocEditor({
             element: "#aiEditor",
         })
     </script>

+ 10 - 10
docs/config/toolbar.md

@@ -3,7 +3,7 @@
 ## Samples
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     toolbarKeys: ["undo", "redo", "brush", "eraser", 
         "|", "heading", "font-family", "font-size", 
@@ -17,7 +17,7 @@ new AiEditor({
 })
 ```
 
-The above configuration is the default configuration of the AiEditor tool class, which `"|"` represents the dividing line.
+The above configuration is the default configuration of the LinwitDocEditor tool class, which `"|"` represents the dividing line.
 
 - undo: Undo
 - redo: Redo
@@ -70,7 +70,7 @@ In addition, the pro version also supports the following configurations:
 Set the toolbar button size by configuring `toolbarSize`:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     toolbarSize: 'medium', // Default is small, options: 'small' | 'medium' | 'large'
 })
@@ -81,7 +81,7 @@ new AiEditor({
 Configure `toolbarExcludeKeys` to exclude the initialization of some tools. The sample code is as follows:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     toolbarExcludeKeys: ["heading", "font-family", "font-size", "ai"],
 })
@@ -90,10 +90,10 @@ new AiEditor({
 
 ## Customize toolbar
 
-In AiEditor, we can customize the extension of the toolbar by making a custom in the `toolbarKeys` configuration, and the configuration sample code is as follows:
+In LinwitDocEditor, we can customize the extension of the toolbar by making a custom in the `toolbarKeys` configuration, and the configuration sample code is as follows:
 
 ```typescript 7-12
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     toolbarKeys: ["undo", "redo", "brush", "eraser",
         "|", "heading", "font-family", "font-size",
@@ -112,7 +112,7 @@ new AiEditor({
 ```
 Description of custom tool configuration items:
 
-- **icon**: The icon used for menu display, only svg configuration is supported for the time being, and it is recommended to use the icon provided by https://remixicon.com to ensure that the icon style of AiEditor is consistent.
+- **icon**: The icon used for menu display, only svg configuration is supported for the time being, and it is recommended to use the icon provided by https://remixicon.com to ensure that the icon style of LinwitDocEditor is consistent.
 
 - **HTML**: Customize the HTML content of the menu, this configuration will override the icon configuration, causing the icon not to take effect, `icon` and `html` only one of them can be configured.
 
@@ -126,7 +126,7 @@ Description of custom tool configuration items:
 **TIP internationalization configuration sample code**
 
 ```ts 12,18,21
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     toolbarKeys: ["undo", "redo", "brush", "eraser",
         "|", "heading", "font-family", "font-size",
@@ -163,7 +163,7 @@ Toolbar grouping means that some tools can be classified into a group, and the m
 The configuration code is as follows:
 
 ```typescript 11-15
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     toolbarKeys: ["undo", "redo", "brush", "eraser", 
         "|", "heading", "font-family", "font-size", 
@@ -195,7 +195,7 @@ As shown above, by configuring a `MenuGroup` object in `toolbarKeys`, you can gr
 In the menu group, add a customized menu button. The sample code is as follows:
 
 ```typescript 15-22
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     toolbarKeys: ["undo", "redo", "brush", "eraser", 
         "|", "heading", "font-family", "font-size", 

+ 2 - 2
docs/config/video.md

@@ -3,10 +3,10 @@
 ## Samples
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     video: {
-        customMenuInvoke: (editor: AiEditor) => {
+        customMenuInvoke: (editor: LinwitDocEditor) => {
         },
         uploadUrl: "https://your-domain/video/upload",
         uploadFormName: "video", //Upload File Form Name

+ 2 - 2
docs/contact-us-bak.md

@@ -45,8 +45,8 @@ layout: home
 
 <div style="color: #999;margin: 40px;">
 
-<p style="margin:5px 0;">Hi, I'm Jenny, co-founder of AiEditor. </p>
-<p style="margin:5px 0;">You can talk to me: how do you use AiEditor;</p>
+<p style="margin:5px 0;">Hi, I'm Jenny, co-founder of LinwitDocEditor. </p>
+<p style="margin:5px 0;">You can talk to me: how do you use LinwitDocEditor;</p>
 <p style="margin:5px 0;">Contact me for: more about the commercial version;</p>
 <p style="margin:5px 0;">Discuss with me: how to cooperation... </p>
 <p style="margin:5px 0;">Anyway,Look forward to getting in touch with me through the following ways. </p>

+ 5 - 5
docs/demo-bak.md

@@ -8,7 +8,7 @@ layout: home
 #  tagline: Out-of-the-box, Fully Framework Supported, Markdown Friendly
 #  image:
 #    src: /assets/image/index-banner.png
-#    alt: AiEditor
+#    alt: LinwitDocEditor
 #  actions:
 #    - theme: brand
 #      text: Quick Start
@@ -21,11 +21,11 @@ layout: home
 
 #features:
 #  - title: Lightweight
-#    details: AiEditor is ready to use out of the box, Development based on Web Components, and does not depend on any rendering framework such as VUE, React or Angular, making it compatible with almost any framework.
+#    details: LinwitDocEditor is ready to use out of the box, Development based on Web Components, and does not depend on any rendering framework such as VUE, React or Angular, making it compatible with almost any framework.
 #  - title: Intelligent
-#    details: AiEditor supports AI continuation, AI optimization, AI proofreading, AI translation, and custom AI menus with their respective Prompts. It supports integration with models like ChatGPT, Spark and private LLMs.
+#    details: LinwitDocEditor supports AI continuation, AI optimization, AI proofreading, AI translation, and custom AI menus with their respective Prompts. It supports integration with models like ChatGPT, Spark and private LLMs.
 #  - title: Powerful
-#    details: In addition to basic functions, AiEditor also supports features that many top editors do not have, such as format painting, merging and unmerging of cells, light and dark themes, mobile adaptation, and more.
+#    details: In addition to basic functions, LinwitDocEditor also supports features that many top editors do not have, such as format painting, merging and unmerging of cells, light and dark themes, mobile adaptation, and more.
 ---
 
 
@@ -39,7 +39,7 @@ layout: home
 
 <div style="margin: 30px 0 40px;color: #999">
 
-The current version is open source. For a pro version demo, please contact AiEditor co-founder Jenny for more information.
+The current version is open source. For a pro version demo, please contact LinwitDocEditor co-founder Jenny for more information.
 
 </div>
 

+ 3 - 3
docs/getting-started.md

@@ -21,13 +21,13 @@ HTML:
 Typescript:
 
 ```typescript
-import {AiEditor} from "aieditor";
+import {LinwitDocEditor} from "aieditor";
 import "aieditor/dist/style.css"
 
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "Click to Input Content...",
-    content: 'AiEditor is an Open Source Rich Text Editor Designed for AI. ',
+    content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI. ',
     ai: {
         models: {
             spark: {

+ 3 - 3
docs/index.md

@@ -22,7 +22,7 @@ hero:
 
 <div class="aieditor-home">
 
-# Why choose AiEditor
+# Why choose LinwitDocEditor
 
 <div class="subtitle">
 
@@ -190,7 +190,7 @@ Allow reviewers to add comments or suggestions to specific sections of the docum
 
 #  Integrate excellent products
 <div class="subtitle">
-We integrate great open source works into AiEditor, such as virtual whiteboard, hand-drawn sketches, chart editor, and more.
+We integrate great open source works into LinwitDocEditor, such as virtual whiteboard, hand-drawn sketches, chart editor, and more.
 </div>
 </div>
 
@@ -239,7 +239,7 @@ Next, whether you use the open source version or the pro version, you will be su
 
 <a href="https://github.com/aieditor-team/aieditor" target="_blank" style="background: #1b1b1f;color: #fff;padding: 10px 50px;border-radius: 5px;font-weight: bold;font-size: 14px;margin: 20px 0 40px 0;text-decoration:none;display:inline-block">Download now</a>
 <div style="font-size: 14px;color:#666;">
-AiEditor is open source under the more liberal LGPL license<br />
+LinwitDocEditor is open source under the more liberal LGPL license<br />
 Unlimited amount of users<br />
 Unlimited amount of applications
 </div>

+ 9 - 9
docs/versions.md

@@ -11,7 +11,7 @@ layout: home
 <div class="feature" style="margin-top: 80px">
 
 # Commercial license
-AiEditor Pro Version has more powerful and practical features,
+LinwitDocEditor Pro Version has more powerful and practical features,
 Help you build a professional product.<br />
 In addition, It provide you with more professional, higher level of service.<br />
 Help you solve problems and your product get on track quickly.
@@ -84,16 +84,16 @@ Help you solve problems and your product get on track quickly.
 <div class="versions-qa-list">
 <Question title="Do I have to buy a commercial license for commercial use?">
 Not really.<br/>
-The kernel of AiEditor is LGPL license. If you don't develop AiEditor again and keep the copyright and version information of AiEditor, you can use it for free.
+The kernel of LinwitDocEditor is LGPL license. If you don't develop LinwitDocEditor again and keep the copyright and version information of LinwitDocEditor, you can use it for free.
 </Question>
 </div>
 
 <div class="versions-qa-list">
 <Question title="The benefits of buying commercial license?" >
-1. You can embed AiEditor into your products or applications and develop AiEditor again.<br/>
-2. Developed products or programs can remove the copyright and version information of AiEditor;<br/>
-3. More powerful functions: AiEditor Commercial edition has more powerful and practical functions to help you build a professional knowledge product.<br/>
-4. Priority support and service: AiEditor Commercial edition provides you with more professional and higher level services, which can quickly respond to problems and help your products get on track faster.
+1. You can embed LinwitDocEditor into your products or applications and develop LinwitDocEditor again.<br/>
+2. Developed products or programs can remove the copyright and version information of LinwitDocEditor;<br/>
+3. More powerful functions: LinwitDocEditor Commercial edition has more powerful and practical functions to help you build a professional knowledge product.<br/>
+4. Priority support and service: LinwitDocEditor Commercial edition provides you with more professional and higher level services, which can quickly respond to problems and help your products get on track faster.
 </Question>
 
 </div>
@@ -127,12 +127,12 @@ When you purchase a commercial license, you can get a range of licenses, for exa
 
 <div class="versions-qa-list">
 <Question title="How long is technical support valid?" >
-For six months, according to the experience, you can master AiEditor use in 6 months.
+For six months, according to the experience, you can master LinwitDocEditor use in 6 months.
 </Question>
 </div>
 <div class="versions-qa-list">
 <Question title="The difference between licensed and commercial versions?" >
-The licensed version is based on the open source version. By purchasing the license, you can develop AiEditor twice, or directly integrate it into your products for commercial use. At the same time, you can remove the copyright and logo information of AiEditor.<br/>
+The licensed version is based on the open source version. By purchasing the license, you can develop LinwitDocEditor twice, or directly integrate it into your products for commercial use. At the same time, you can remove the copyright and logo information of LinwitDocEditor.<br/>
 
 The commercial version is based on the licensed version, providing more powerful support, such as collaboration, annotation, word import and export, and so on. At the same time, provide more professional, higher level of service, can quickly solve the problem.
 </Question>
@@ -148,7 +148,7 @@ The commercial version is based on the licensed version, providing more powerful
 
 # Buy
 
-Contact Jenny, co-founder of AiEditor, via email or wechat
+Contact Jenny, co-founder of LinwitDocEditor, via email or wechat
 
 
 <p style="display: flex;justify-content: center;align-items: center">

+ 8 - 8
docs/what-is-ai-editor.md

@@ -1,14 +1,14 @@
-# What is AiEditor
+# What is LinwitDocEditor
 
 
 
 ## Introduction
 
-> AiEditor is a next-generation rich text editor for AI. It is developed based on Web Component and therefore supports almost any front-end framework such as  Vue, React, Angular, Svelte, etc. It is adapted to PC Web and mobile terminals, and provides two themes: light and dark. In addition, it also provides flexible configuration, and developers can easily use it to develop any text editing application.
+> LinwitDocEditor is a next-generation rich text editor for AI. It is developed based on Web Component and therefore supports almost any front-end framework such as  Vue, React, Angular, Svelte, etc. It is adapted to PC Web and mobile terminals, and provides two themes: light and dark. In addition, it also provides flexible configuration, and developers can easily use it to develop any text editing application.
 
 
 
-## Why develop AiEditor
+## Why develop LinwitDocEditor
 
 Now, the AI era has arrived, and AIGC is booming.
 
@@ -21,14 +21,14 @@ In 2023, we started to choose a suitable AI rich text editor for our products, a
 > When using the AI functions of editors such as CKEditor, TinyMCE, and Tiptap, you must use their **_paid_** plug-ins and AI cloud services. In this case, the applications will face many limitations if we develop based on it.
 > For example: we cannot be deployed privately and not use private LLM apiKey, etc.
 
-Therefore, I decided to develop AiEditor to solve the above problems.
+Therefore, I decided to develop LinwitDocEditor to solve the above problems.
 
-## Positioning of AiEditor
+## Positioning of LinwitDocEditor
 
-1. Our original intention in developing AiEditor was to solve AI editing problems. Therefore, in terms of AI, AiEditor supports the use of private apiKey to connect to any LLMs, including ChatGPT, iFlytek Spark and any privatized LLM.
-2. We hope that AiEditor has more usage scenarios and is not limited to any UI rendering framework, such as Vue, React, Angular, Svelte, etc.  Therefore, we developed it based on Web Component, which can be well integrated with any framework.
+1. Our original intention in developing LinwitDocEditor was to solve AI editing problems. Therefore, in terms of AI, LinwitDocEditor supports the use of private apiKey to connect to any LLMs, including ChatGPT, iFlytek Spark and any privatized LLM.
+2. We hope that LinwitDocEditor has more usage scenarios and is not limited to any UI rendering framework, such as Vue, React, Angular, Svelte, etc.  Therefore, we developed it based on Web Component, which can be well integrated with any framework.
 3. We provide a friendly UI, support two themes, light and dark, support the writing habit of using Markdown, support flexible function configuration and custom layout, and use the open source protocol LGPL, which is more friendly than CKEditor and TinyMCE.
-4. In addition, we will continue to learn from excellent products, such as Notion, etc., to provide a series of useful AI functions... Of course, AiEditor is still evolving, and we need your support.
+4. In addition, we will continue to learn from excellent products, such as Notion, etc., to provide a series of useful AI functions... Of course, LinwitDocEditor is still evolving, and we need your support.
 
 
 ## Open source

+ 6 - 6
docs/zh/ai/base.md

@@ -5,7 +5,7 @@
 使用 ChatGPT
 
 ```ts
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {
@@ -21,7 +21,7 @@ new AiEditor({
 或者星火大模型
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai:{
         models:{
@@ -66,16 +66,16 @@ version?: string,
 
 ## 服务端签名
 
-在使用 AiEditor 中,如果是用于内部用户,我们可以通过前端配置模型的 `appId`、`apiKey`、`apiSecret` ,这是没问题的。
+在使用 LinwitDocEditor 中,如果是用于内部用户,我们可以通过前端配置模型的 `appId`、`apiKey`、`apiSecret` ,这是没问题的。
 
-但是,AiEditor 给普通互联网用户使用,则不应该把 `appId`、`apiKey`、`apiSecret` 配置在前端,而是通过后端服务对 Ai 请求路径进行签名,
+但是,LinwitDocEditor 给普通互联网用户使用,则不应该把 `appId`、`apiKey`、`apiSecret` 配置在前端,而是通过后端服务对 Ai 请求路径进行签名,
 需要自定义配置 `onCreateClientUrl` 才能保证秘钥安全。
 
 
 示例代码如下:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai:{
         models:{
@@ -105,7 +105,7 @@ new AiEditor({
 示例代码如下:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {

+ 1 - 1
docs/zh/ai/codeblock.md

@@ -9,7 +9,7 @@
 以上功能需要进行对 AI 的进行配置, 配置代码如下:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai:{
         codeBlock: {

+ 1 - 1
docs/zh/ai/command.md

@@ -5,7 +5,7 @@ AI Command,指的是在文本框中,输入 `空格 + '/'` 弹出的 AI 菜
 ## 示例代码
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai:{
         models:{

+ 9 - 9
docs/zh/ai/llm.md

@@ -1,11 +1,11 @@
 # 大语言模型
 
-目前,AiEditor 支持 `Openai(ChatGPT)`、`星火大模型`、`文心一言`以及 `自定义后端` 类型的大语言模型。
+目前,LinwitDocEditor 支持 `Openai(ChatGPT)`、`星火大模型`、`文心一言`以及 `自定义后端` 类型的大语言模型。
 
 ## Openai(ChatGPT)
 
 ```ts
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {
@@ -20,7 +20,7 @@ new AiEditor({
 或者通过 Openai 的接口使用 `月之暗面` 或者其他和 Openai API 兼容的模型。
 
 ```ts
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {
@@ -38,7 +38,7 @@ new AiEditor({
 `endpoint` + `/v1/chat/completions` 时,我们需要配置 `customUrl`,如下代码所示:
 
 ```ts
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {
@@ -58,7 +58,7 @@ new AiEditor({
 ## 星火大模型
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {
@@ -85,7 +85,7 @@ new AiEditor({
 ## 文心一言
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {
@@ -104,7 +104,7 @@ new AiEditor({
 当前是使用 Gitee AI 的 serverless api 来进行支持。
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {
@@ -120,7 +120,7 @@ new AiEditor({
 更多的 Gitee AI 配置,例如:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {
@@ -141,7 +141,7 @@ new AiEditor({
 ## 自定义大语言模型
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         models: {

+ 4 - 4
docs/zh/ai/menu.md

@@ -9,7 +9,7 @@ AI 菜单配置,用于在编辑器顶部工具栏,点击 AI 下拉的菜单
 工具栏菜单配置示例代码
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai:{
         // models:{...] 等其他配置
@@ -33,7 +33,7 @@ new AiEditor({
 })
 ```
 
-- **icon**:用于菜单显示的 icon,暂时只支持 svg 配置,svg icon 建议使用 https://remixicon.com 提供的 icon,以保证和 AiEditor 的 icon 风格保持统一。
+- **icon**:用于菜单显示的 icon,暂时只支持 svg 配置,svg icon 建议使用 https://remixicon.com 提供的 icon,以保证和 LinwitDocEditor 的 icon 风格保持统一。
 - **name**:AI 菜单的名称
 - **prompt**:AI 提示语
 - **text**:文字内容,支持 `"focusBefore"` 和 `"selected"` 可选;`"focusBefore"` 表示获取当前焦点前的文字内容,`"selected"` 表示获取当前选中的文本内容。
@@ -52,7 +52,7 @@ new AiEditor({
 
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai:{
         // models:{...] 等其他配置
@@ -86,7 +86,7 @@ new AiEditor({
 
 
 - **prompt**:AI 提示
-- **icon**:菜单展示使用的图标,目前仅支持 svg 配置,svg 图标建议使用 https://remixicon.com 提供的图标,以保证与 AiEditor 图标样式一致。
+- **icon**:菜单展示使用的图标,目前仅支持 svg 配置,svg 图标建议使用 https://remixicon.com 提供的图标,以保证与 LinwitDocEditor 图标样式一致。
 - **title**:AI 菜单的名称
 
 

+ 1 - 1
docs/zh/ai/prompt.md

@@ -4,7 +4,7 @@
 在 AIEditor 中的 `AI 菜单`、`AI 命令`、`AI 代码块` 都是可以配置自定义的提示词 Prompt 的,例如菜单配置如下
 
 ```ts
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai:{
         // models:{...] 等其他配置

+ 1 - 1
docs/zh/ai/translate.md

@@ -9,7 +9,7 @@ AI 翻译指的是选择一段文字后,可以对其内容进行翻译。如
 如果我们需要对其默认翻译的语言进行配置, 配置代码如下:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     ai: {
         translate: {

+ 7 - 7
docs/zh/aieditor-with-layui.md

@@ -1,12 +1,12 @@
-# AiEditor 与 Layui、JQuery 等传统框架整合
+# LinwitDocEditor 与 Layui、JQuery 等传统框架整合
 
 
 
-AiEditor 与传统开发框架集成,分为 3 步:
+LinwitDocEditor 与传统开发框架集成,分为 3 步:
 
 - 1、下载 `aieditor` 的 `js` 和 `css` ,下载地址: https://gitee.com/aieditor-team/aieditor/tree/main/dist 。
 - 2、通过 `link` 导入 `aieditor` 的 `css` 样式文件 。
-- 3、通过 `<script type="module">` 导入 `aieditor` 的 `js` , 并初始化 `AiEditor` 实例 。
+- 3、通过 `<script type="module">` 导入 `aieditor` 的 `js` , 并初始化 `LinwitDocEditor` 实例 。
 
 代码如下所示:
 
@@ -14,16 +14,16 @@ AiEditor 与传统开发框架集成,分为 3 步:
 <!doctype html>
 <html lang="en">
 <head>
-    <title>AiEditor Demo</title>
+    <title>LinwitDocEditor Demo</title>
     <meta charset="UTF-8"/>
     <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
     <link type="text/css" rel="stylesheet" href="aieditor/style.css">
     <script type="module">
-        import {AiEditor} from 'aieditor/index.js'
-        new AiEditor({
+        import {LinwitDocEditor} from 'aieditor/index.js'
+        new LinwitDocEditor({
             element: "#aiEditor",
             placeholder: "点击输入内容...",
-            content: 'AiEditor 是一个面向 AI 的下一代富文本编辑器。',
+            content: 'LinwitDocEditor 是一个面向 AI 的下一代富文本编辑器。',
             ai: {
                 models: {
                     spark: {

+ 10 - 10
docs/zh/aieditor-with-react.md

@@ -1,10 +1,10 @@
-# AiEditor 与 React 整合
+# LinwitDocEditor 与 React 整合
 
-在 React 中,我们通过使用 `useRef` Hook 得到 dom 节点,然后再通过 `new AiEditor` 进行实例化,示例代码如下:
+在 React 中,我们通过使用 `useRef` Hook 得到 dom 节点,然后再通过 `new LinwitDocEditor` 进行实例化,示例代码如下:
 
 ```jsx
 import {useEffect, useRef} from 'react'
-import {AiEditor} from "aieditor";
+import {LinwitDocEditor} from "aieditor";
 import "aieditor/dist/style.css"
 
 function App() {
@@ -12,13 +12,13 @@ function App() {
     //定义 ref
     const divRef = useRef(null);
 
-    //初始化 AiEditor
+    //初始化 LinwitDocEditor
     useEffect(() => {
         if (divRef.current) {
-            const aiEditor = new AiEditor({
+            const aiEditor = new LinwitDocEditor({
                 element: divRef.current,
                 placeholder: "点击输入内容...",
-                content: 'AiEditor 是一个面向 AI 的开源富文本编辑器。 ',
+                content: 'LinwitDocEditor 是一个面向 AI 的开源富文本编辑器。 ',
             })
             return ()=>{
                 aiEditor.destroy();
@@ -29,7 +29,7 @@ function App() {
     return (
         <>
             <div>
-                <h1>AiEditor,一个面向 AI 的富文本编辑器</h1>
+                <h1>LinwitDocEditor,一个面向 AI 的富文本编辑器</h1>
             </div>
             <div ref={divRef} style={{height: "600px"}} />
         </>
@@ -44,7 +44,7 @@ export default App
 ```jsx
 // "use client"; // Next.JS
 
-import { AiEditor, AiEditorOptions } from "aieditor";
+import { LinwitDocEditor, AiEditorOptions } from "aieditor";
 import "aieditor/dist/style.css";
 
 import { HTMLAttributes, forwardRef, useEffect, useRef } from "react";
@@ -69,13 +69,13 @@ export default forwardRef<HTMLDivElement, AIEditorProps>(function AIEditor(
   ref
 ) {
   const divRef = useRef<HTMLDivElement>(null);
-  const aiEditorRef = useRef<AiEditor | null>(null);
+  const aiEditorRef = useRef<LinwitDocEditor | null>(null);
 
   useEffect(() => {
     if (!divRef.current) return;
 
     if (!aiEditorRef.current) {
-      const aiEditor = new AiEditor({
+      const aiEditor = new LinwitDocEditor({
         element: divRef.current,
         placeholder: placeholder,
         content: defaultValue,

+ 7 - 7
docs/zh/aieditor-with-svelte.md

@@ -1,4 +1,4 @@
-# AiEditor 与 Svelte 整合
+# LinwitDocEditor 与 Svelte 整合
 
 
 在 Svelte 中,使用 AIEditor 的示例代码如下:
@@ -7,15 +7,15 @@
 <script lang="ts">
     import {onDestroy, onMount} from 'svelte';
     import "aieditor/dist/style.css"
-    import type {AiEditor} from "aieditor";
+    import type {LinwitDocEditor} from "aieditor";
 
-    let aieditor: AiEditor;
+    let aieditor: LinwitDocEditor;
     onMount(async () => {
-        import('aieditor').then(({AiEditor}) => {
-            aieditor = new AiEditor({
+        import('aieditor').then(({LinwitDocEditor}) => {
+            aieditor = new LinwitDocEditor({
                 element: "#editor",
                 placeholder: "Click to Input Content...",
-                content: 'AiEditor is an Open Source Rich Text Editor Designed for AI. ',
+                content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI. ',
             })
         })
     });
@@ -41,4 +41,4 @@
 </style>
 ```
 
-完整代码在: https://github.com/aieditor-team/AiEditor/tree/main/demos/svelte-ts
+完整代码在: https://github.com/aieditor-team/LinwitDocEditor/tree/main/demos/svelte-ts

+ 6 - 6
docs/zh/aieditor-with-vue2.md

@@ -1,25 +1,25 @@
-# AiEditor 与 Vue2 整合
+# LinwitDocEditor 与 Vue2 整合
 
 
-在 Vue 中,我们通过 `ref` 属性定义 `div` 的 `$refs` 引用,然后再通过 `new AiEditor` 进行实例化,示例代码如下:
+在 Vue 中,我们通过 `ref` 属性定义 `div` 的 `$refs` 引用,然后再通过 `new LinwitDocEditor` 进行实例化,示例代码如下:
 
 ```html
 <template>
     <div>
-        <h1>AiEditor,一个面向 AI 的富文本编辑器</h1>
+        <h1>LinwitDocEditor,一个面向 AI 的富文本编辑器</h1>
     </div>
     <div ref="divRef" style="height: 600px"/>
 </template>
 
 <script lang="ts">
-    import {AiEditor} from "aieditor";
+    import {LinwitDocEditor} from "aieditor";
     import "aieditor/dist/style.css"
     export default {
         mounted(){
-            new AiEditor({
+            new LinwitDocEditor({
                 element: this.$refs.divRef as Element,
                 placeholder: "点击输入内容...",
-                content: 'AiEditor 是一个面向 AI 的开源富文本编辑器。 ',
+                content: 'LinwitDocEditor 是一个面向 AI 的开源富文本编辑器。 ',
             })
         }
     }

+ 15 - 15
docs/zh/aieditor-with-vue3.md

@@ -1,25 +1,25 @@
-# AiEditor 与 Vue3 整合
+# LinwitDocEditor 与 Vue3 整合
 
 
-在 Vue 中,我们通过 `ref` 属性定义 `div` 的 `$refs` 引用,然后再通过 `new AiEditor` 进行实例化,示例代码如下:
+在 Vue 中,我们通过 `ref` 属性定义 `div` 的 `$refs` 引用,然后再通过 `new LinwitDocEditor` 进行实例化,示例代码如下:
 
 ```html
 <template>
     <div>
-        <h1>AiEditor,一个面向 AI 的富文本编辑器</h1>
+        <h1>LinwitDocEditor,一个面向 AI 的富文本编辑器</h1>
     </div>
     <div ref="divRef" style="height: 600px"/>
 </template>
 
 <script lang="ts">
-    import {AiEditor} from "aieditor";
+    import {LinwitDocEditor} from "aieditor";
     import "aieditor/dist/style.css"
     export default {
         mounted(){
-            new AiEditor({
+            new LinwitDocEditor({
                 element: this.$refs.divRef as Element,
                 placeholder: "点击输入内容...",
-                content: 'AiEditor 是一个面向 AI 的开源富文本编辑器。 ',
+                content: 'LinwitDocEditor 是一个面向 AI 的开源富文本编辑器。 ',
             })
         }
     }
@@ -32,24 +32,24 @@
 ```vue
 <template>
   <div>
-    <h1>AiEditor,一个面向 AI 的富文本编辑器</h1>
+    <h1>LinwitDocEditor,一个面向 AI 的富文本编辑器</h1>
   </div>
   <div ref="divRef" style="height: 600px"/>
 </template>
 
 <script setup lang="ts">
-import {AiEditor} from "aieditor";
+import {LinwitDocEditor} from "aieditor";
 import "aieditor/dist/style.css"
 import {onMounted, onUnmounted, ref} from "vue";
 
 const divRef = ref();
-let aiEditor: AiEditor | null = null;
+let aiEditor: LinwitDocEditor | null = null;
 
 onMounted(() => {
-  aiEditor = new AiEditor({
+  aiEditor = new LinwitDocEditor({
     element: divRef.value as Element,
     placeholder: "点击输入内容...",
-    content: 'AiEditor 是一个面向 AI 的开源富文本编辑器。 ',
+    content: 'LinwitDocEditor 是一个面向 AI 的开源富文本编辑器。 ',
   })
 })
 
@@ -73,7 +73,7 @@ onUnmounted(() => {
 </template>
 
 <script setup lang="ts">
-// import {AiEditor} from "aieditor";
+// import {LinwitDocEditor} from "aieditor";
 import "aieditor/dist/style.css"
 import {onMounted, onUnmounted, ref} from "vue";
 
@@ -82,11 +82,11 @@ let aiEditor: any = null;
 
 onMounted(() => {
   //for ssr
-  import('aieditor').then(({AiEditor}) => {
-    aiEditor = new AiEditor({
+  import('aieditor').then(({LinwitDocEditor}) => {
+    aiEditor = new LinwitDocEditor({
       element: divRef.value as Element,
       placeholder: "Click to Input Content...",
-      content: 'AiEditor is an Open Source Rich Text Editor Designed for AI.  ',
+      content: 'LinwitDocEditor is an Open Source Rich Text Editor Designed for AI.  ',
     })
   })
 })

+ 10 - 10
docs/zh/api/aieditor.md

@@ -1,11 +1,11 @@
-# AiEditor API 文档
+# LinwitDocEditor API 文档
 
 ## 初始化
 
-AiEditor 为整个编辑器的核心类,其初始化代码如下:
+LinwitDocEditor 为整个编辑器的核心类,其初始化代码如下:
 
 ```typescript
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
 })
@@ -16,7 +16,7 @@ const aiEditor = new AiEditor({
 方法调用示例代码:
 
 ```typescript
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
 })
@@ -26,7 +26,7 @@ const html = aiEditor.getHtml();
 console.log(html)
 ```
 
-AiEditor 提供的方法如下:
+LinwitDocEditor 提供的方法如下:
 
 - `getHtml()`: 获取当前编辑器的 html 内容。
 - `getJson()`: 获取当前编辑器的 json 描述数据。
@@ -92,7 +92,7 @@ AiEditor 提供的方法如下:
 ### 内容变化监听
 
 ```typescript
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
     onChange:(aiEditor)=>{
@@ -105,7 +105,7 @@ const aiEditor = new AiEditor({
 ### 获得焦点
 
 ```typescript
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
     onFocus:(aiEditor)=>{
@@ -117,7 +117,7 @@ const aiEditor = new AiEditor({
 ### 失去焦点
 
 ```typescript
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
     onBlur:(aiEditor)=>{
@@ -130,7 +130,7 @@ const aiEditor = new AiEditor({
 ### 实例被创建
 
 ```typescript
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
     onCreated:(aiEditor)=>{
@@ -142,7 +142,7 @@ const aiEditor = new AiEditor({
 ### 实例被销毁
 
 ```typescript
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
     onDestroy:(aiEditor)=>{

+ 23 - 23
docs/zh/changes.md

@@ -1,4 +1,4 @@
-# AiEditor ChangeLog
+# LinwitDocEditor ChangeLog
 
 ## v1.3.6 20250312:
 - feat: Added alwaysEnabledToolbarKeys configuration to specify that certain buttons are always enabled
@@ -250,14 +250,14 @@
 
 ## v1.1.7 20241002:
 - feat: add SmoothAppender for textarea
-- refactor: optimize AiEditor.onTransaction() method
+- refactor: optimize LinwitDocEditor.onTransaction() method
 - refactor: rename "PasteExt" extension Name to adapter v2.8.0
 - refactor: optimize BubbleMenuPlugin.ts
 - refactor: update linkBubbleMenu pluginKey's name
 
 ---
 - 新增: 新增 SmoothAppender 使得 AI 输入更加湿滑
-- 优化: 优化 AiEditor.onTransaction() 的相关代码
+- 优化: 优化 LinwitDocEditor.onTransaction() 的相关代码
 - 优化: 重命名 "PasteExt" 插件的名称以适配 v2.8.0
 - 优化: 优化 BubbleMenuPlugin.ts 的核心逻辑
 - 优化: 重命名 linkBubbleMenu 插件的名称
@@ -266,9 +266,9 @@
 
 ## v1.1.6 20240928:
 - feat: Hide the emoji panel when clicking an emoji.
-- feat: add html paste config and close https://github.com/aieditor-team/AiEditor/issues/92
+- feat: add html paste config and close https://github.com/aieditor-team/LinwitDocEditor/issues/92
 - refactor: add icons in Translate action buttons
-- fix: cat not show bubble menu on Cmd+A text selection command, close https://github.com/aieditor-team/AiEditor/issues/91
+- fix: cat not show bubble menu on Cmd+A text selection command, close https://github.com/aieditor-team/LinwitDocEditor/issues/91
 
 ---
 - 优化:当点击 emoji 表情的时候,隐藏 emoji 面板
@@ -311,7 +311,7 @@
 - feat: add de and pt langs, thanks to @TobiasKrais
 - feat: add Emoji config support
 - fix: fix GiteeAiModel parse ai message error
-- refactor: optimize AiEditor.ts and Header.ts
+- refactor: optimize LinwitDocEditor.ts and Header.ts
 - refactor: optimize styles in Emoji.ts/Heading.ts/AbstractDropdownMenuButton.ts, thanks to @TobiasKrais
 - refactor: optimize ai panel position
 - chore: create npm-publish.yml
@@ -324,7 +324,7 @@
 - 新增: 新增德语和葡萄牙语的配置,感谢 @TobiasKrais
 - 新增: 新增 emoji 自定义配置的功能
 - 修复: 修复 GiteeAiModel 在某些情况下解析错误的问题
-- 优化: 优化 AiEditor.ts 及 Header.ts 代码
+- 优化: 优化 LinwitDocEditor.ts 及 Header.ts 代码
 - 优化: 优化 Emoji.ts/Heading.ts/AbstractDropdownMenuButton.ts 的样式代码, @TobiasKrais
 - 优化: 优化 文字选中以及 ai 弹出菜单的位置
 - 优化: 创建 npm-publish.yml 用于自动发布的功能
@@ -512,7 +512,7 @@
 - 优化:选中空白内容,但为选中任何文字时,错误的弹出操作菜单的问题
 - 优化:更新相关的依赖到最新版本
 - 修复:AI 菜单在某些场景下出现错位的问题,感谢 @monksoul
-- 文档:添加 React 对 AiEditor 的封装为组件的相关文档,感谢 @monksoul
+- 文档:添加 React 对 LinwitDocEditor 的封装为组件的相关文档,感谢 @monksoul
 
 
 
@@ -558,7 +558,7 @@
 ## v1.0.0-rc.7 20240109:
 - 新增:添加当 uploader 的 onUploadBefore 返回 false 时,中断文件上传
 - 新增:Ai 模块添加自定义 AiModelFactory 的配置,方便引用第三方 Ai 大模型
-- 优化:修改  AiEditor.insert 的参数为 any 类型
+- 优化:修改  LinwitDocEditor.insert 的参数为 any 类型
 - 优化:重命名 AiModelFactory 为 AiModelManager
 - 修复:修改全屏按钮在某些情况下不起作用的问题,感谢 @ashuicoder
 - 修复:高亮块、链接、引用获得焦点时,菜单没有被激活的问题
@@ -589,7 +589,7 @@
 
 
 ## v1.0.0-rc.4 20231222:
-- 修复:当 AiEditor 嵌入到 Form 时,点击某些按钮会触发 Form 提交的问题
+- 修复:当 LinwitDocEditor 嵌入到 Form 时,点击某些按钮会触发 Form 提交的问题
 - 修复:从网页复制的内容粘贴到编辑器,图片无法被粘贴进来的问题
 - 修复:点击表格、图片时,会有多个弹出菜单位置冲突的问题
 
@@ -597,9 +597,9 @@
 
 ## v1.0.0-rc.2 20231220:
 - 新增:自定义菜单添加 id 和 className 类名配置的支持
-- 新增:AiEditor 添加 onDestroy 监听的配置支持
+- 新增:LinwitDocEditor 添加 onDestroy 监听的配置支持
 - 优化:上传组件重命名 onBeforeUpload 为 onUploadBefore
-- 修复:在 React 的 StrictMode 下,无法使用 AiEditor 自定义布局的问题
+- 修复:在 React 的 StrictMode 下,无法使用 LinwitDocEditor 自定义布局的问题
 - 文档:添加自定义布局的相关文档内容
 
 
@@ -607,7 +607,7 @@
 ## v1.0.0-rc.1 20231219:
 - 新增:AI 功能添加选择文字时,对文字进行在定义 Prompt 操作的功能
 - 新增:添加选中文字内容时,弹出操作菜单的功能
-- 新增:AiEditor 添加 onCreateBefore 的钩子函数,方便初始化插件
+- 新增:LinwitDocEditor 添加 onCreateBefore 的钩子函数,方便初始化插件
 - 修复:同一个页面下,初始化多个 editor 实例时出错的问题
 - 修复:修复保持 html 后,通过 html 再次初始化编辑器无法准确解析视频组件的问题
 - 优化:重构 AbstractBubbleMenu.ts 的相关属性和逻辑
@@ -630,7 +630,7 @@
 - 新增:“链接” 功能添加自定义 ref、class 等配置的支持
 - 新增:添加头部、编辑区的自定义布局支持
 - 新增:添加 “类腾讯文档” 风格的 demo 示例代码
-- 新增:AiEditor 添加 "onCreated" 方法用于监听初始化
+- 新增:LinwitDocEditor 添加 "onCreated" 方法用于监听初始化
 - 优化:优化 aiEditor 和其他应用使用,在打印内容时可能出现内容错乱的问题
 - 优化:重命名 menus 为 header,和 footer 统一命名
 - 样式:优化 “表格” 在暗色模式下显示不正确的问题
@@ -642,7 +642,7 @@
 ## v1.0.0-beta.8 20231207:
 - 新增:`代码块` 新增 AI 自动添加注释的功能
 - 新增:`代码块` 新增 AI 解释代码含义的功能
-- 新增:AiEditor 添加 `getSelectedText()` 用于获取选择的文字
+- 新增:LinwitDocEditor 添加 `getSelectedText()` 用于获取选择的文字
 - 新增:图片、视频、附件上传添加 `dataProcessor` 配置用于二次处理服务器请求的功能
 - 修复:`代码块` 在第一次初始化时,无法选择代码语言的问题
 - 样式:修改 `引用`(`blockquote`)在暗色模式下的样式问题
@@ -651,28 +651,28 @@
 
 
 ## v1.0.0-beta.7 20231204:
-- 新增:AiEditor 添加 getMarkdown() 方法,用于获得 markdown 内容
-- 新增:AiEditor 添加 getOutline() 方法,用于获得文章的目录内容
-- 新增:AiEditor.focusPos(pos) 方法用于定位当前焦点到指定位置
+- 新增:LinwitDocEditor 添加 getMarkdown() 方法,用于获得 markdown 内容
+- 新增:LinwitDocEditor 添加 getOutline() 方法,用于获得文章的目录内容
+- 新增:LinwitDocEditor.focusPos(pos) 方法用于定位当前焦点到指定位置
 - 新增:添加 "高亮块" 功能,类型 vuepress 的 `:::`
 - 修复:修改附件上传时,未配置上传 url 的情况下出现错误的问题
 - 修复:字号大小设置菜单无法设置到默认字号的问题
 - 修复:自定义 AI 菜单时,添加 4 个以上菜单会出现滚动条的问题
-- 优化:AiEditor 类合并 insertHtml 和 insertMarkdown 为 insert 方法
+- 优化:LinwitDocEditor 类合并 insertHtml 和 insertMarkdown 为 insert 方法
 - 优化:优化编辑区的链接、图片、表格的浮动菜单有警告输出的问题
 - 优化:重命名工具类的 Title 为 Heading
 - 样式:优化链接弹出编辑框网址输入栏不对齐的问题
 - 样式:弹出框等元素添加 3px 圆角,使之在 UI 效果上更精致
 - 样式:修改内容编辑区的表格有一个横向滚动条的问题
 - 样式:优化菜单中插入表格的鼠标移动样式
-- 文档:更细 AiEditor 的 API 方法列表
+- 文档:更细 LinwitDocEditor 的 API 方法列表
 - 文档:readme 添加英文版本的内容
 
 
 
 ## v1.0.0-beta.6 20231201:
 - 新增:增强对 AI 输出自动进行 markdown 转换的功能
-- 新增:AiEditor 的相关操作方法支持链式调用的功能
+- 新增:LinwitDocEditor 的相关操作方法支持链式调用的功能
 - 新增:添加 "aiEditor.insertMarkdown()" 用于插入 markdown 内容
 - 新增:支持直接粘贴 markdown 内容自动转换为可视化编辑的功能
 - 新增:增强在输入时更多的 markdown 功能转换
@@ -687,7 +687,7 @@
 - 新增:添加 1i8n 国际化支持
 - 新增:添加 vue 和 aieditor 整合的示例代码和文档
 - 新增:添加 react 和 aieditor 整合的示例代码和文档
-- 新增:AiEditor 类添加 `insert(html)`、`clear()`、`focus()`、`destroy()` 等更多方法
+- 新增:LinwitDocEditor 类添加 `insert(html)`、`clear()`、`focus()`、`destroy()` 等更多方法
 - 优化:修改菜单中选择的默认样式和图标
 - 优化:移除代码中一些无用的 log 输出
 - 修复:修复工具栏中下拉菜单无法联动默认样式的问题
@@ -710,7 +710,7 @@
 
 ## v1.0.0-beta.2 20231120:
 - 新增:添加输入 "/" 时弹出 AI 菜单的功能
-- 新增:AiEditor 添加 onChange 的回调配置
+- 新增:LinwitDocEditor 添加 onChange 的回调配置
 - 新增:星火大模型添加 ws 和 wss 协议配置的支持
 - 新增:星火大模型添加自定义 URL 数据签名的支持
 - 新增:编辑器右下角添加自由拖拽放大或缩小整个编辑器的支持

+ 2 - 2
docs/zh/config/attachment.md

@@ -4,10 +4,10 @@
 ## 示例代码
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     attachment: {
-        customMenuInvoke: (editor: AiEditor) => {
+        customMenuInvoke: (editor: LinwitDocEditor) => {
         },
         uploadUrl: "https://your-domain/attachment/upload",
         uploadFormName: "attachment", //上传时的文件表单名称

+ 2 - 2
docs/zh/config/base.md

@@ -3,11 +3,11 @@
 ## 示例代码
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
     theme: "light",
-    content: 'AiEditor 是一个面向 AI 的开源富文本编辑器。 ',
+    content: 'LinwitDocEditor 是一个面向 AI 的开源富文本编辑器。 ',
     contentIsMarkdown: false,
     contentRetention: true,
     contentRetentionKey: 'ai-editor-content',

+ 6 - 6
docs/zh/config/bubbleMenu.md

@@ -8,10 +8,10 @@
 在 AIEditor 中,我们可以通过 `textSelectionBubbleMenu` 来配置浮动菜单,示例代码如下:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
-    content: 'AiEditor 是一个面向 AI 的开源富文本编辑器。 ',
+    content: 'LinwitDocEditor 是一个面向 AI 的开源富文本编辑器。 ',
     textSelectionBubbleMenu: {
         enable: true,
         items: ["ai", "Bold", "Italic", "Underline", "Strike", "code", "comment"],
@@ -30,10 +30,10 @@ new AiEditor({
 可以通过以上 **items**,只需要传入一个 `BubbleMenuItem` 配置即可,示例代码如下:
 
 ```ts
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
-    content: 'AiEditor 是一个面向 AI 的开源富文本编辑器。 ',
+    content: 'LinwitDocEditor 是一个面向 AI 的开源富文本编辑器。 ',
     textSelectionBubbleMenu: {
         enable: true,
         items: ["ai", "Bold", "Italic", {
@@ -61,10 +61,10 @@ AI 浮动菜单只有在 `商业Pro版` 本中进行支持,点击配置的浮
 其配置如下:
 
 ```ts
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
-    content: 'AiEditor 是一个面向 AI 的开源富文本编辑器。 ',
+    content: 'LinwitDocEditor 是一个面向 AI 的开源富文本编辑器。 ',
     textSelectionBubbleMenu: {
         enable: true,
         items: ["ai", "Bold", "Italic", {

+ 1 - 1
docs/zh/config/codeblock.md

@@ -3,7 +3,7 @@
 ## 示例代码
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     codeBlock: {
         languages: [

+ 1 - 1
docs/zh/config/collaboration.md

@@ -9,7 +9,7 @@
 ## 使用方法
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     collaboration: {
         url: "ws://127.0.0.1:8080?somekey=value",

+ 2 - 2
docs/zh/config/comment.md

@@ -9,7 +9,7 @@
 ## 使用方法
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     comment: {
         enable: true,
@@ -79,7 +79,7 @@ new AiEditor({
 ```typescript
 const colors = ['#3f3f3f', '#938953', '#548dd4', '#95b3d7',
     '#d99694', '#c3d69b', '#b2a2c7', '#92cddc', '#fac08f'];
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     comment: {
         enable: true,

+ 2 - 2
docs/zh/config/container.md

@@ -25,7 +25,7 @@ This is a warning.
 默认高亮块配置,是用于点击`工具栏` 的高亮块图标时,使用的高亮块类型。 或者用户只输入 `:::` 然后键入回车键时,默认使用的类型。
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     container: {
         defaultType: "warning",
@@ -40,7 +40,7 @@ new AiEditor({
 用户可以通过如下代码进行更多的配置:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     container: {
         typeItems: [ "default", 'info','warning','danger',]

+ 4 - 4
docs/zh/config/editable.md

@@ -7,10 +7,10 @@
 方案 1: 在初始化时,通过传入 ` editable:false` 参数进行设置:
 
 ```typescript 5
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
-    content: 'AiEditor 是一个面向 AI 的开源富文本编辑器。 ',
+    content: 'LinwitDocEditor 是一个面向 AI 的开源富文本编辑器。 ',
     editable:false,
 })
 ```
@@ -18,10 +18,10 @@ new AiEditor({
 方案 2: 通过调用 `aiEditor.setEditable(false)` 进行设置:
 
 ```typescript 8
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
-    content: 'AiEditor 是一个面向 AI 的开源富文本编辑器。 ',
+    content: 'LinwitDocEditor 是一个面向 AI 的开源富文本编辑器。 ',
 })
 
 

+ 1 - 1
docs/zh/config/fontFamily.md

@@ -3,7 +3,7 @@
 ## 示例代码
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     fontFamily:{
         values:[

+ 2 - 2
docs/zh/config/fontSize.md

@@ -4,7 +4,7 @@
 ## 示例代码
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     fontSize:{
         values:[
@@ -31,7 +31,7 @@ new AiEditor({
 在 AIEditor 中,默认的字号大小为 14px,若想修改默认字号大小。需要添加如下配置:
 
 ```ts 5
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
     fontSize: {

+ 4 - 4
docs/zh/config/i18n.md

@@ -19,7 +19,7 @@
 ## 示例代码
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     lang: "zh",
     i18n: {
@@ -40,14 +40,14 @@ new AiEditor({
 - **i18n**:自定义国际化配置。
 
 ::: warning 注意
-AiEditor 已经内置了关于 `zh`(中文)和 `en`(英文)的国际化内容,只需要配置 `lang` 即可,但可以通过 `i18n` 的配置覆盖掉内置的内容,或者添加额外的其他语言。
+LinwitDocEditor 已经内置了关于 `zh`(中文)和 `en`(英文)的国际化内容,只需要配置 `lang` 即可,但可以通过 `i18n` 的配置覆盖掉内置的内容,或者添加额外的其他语言。
 :::
 
 ## 添加其他语言的支持
 
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     lang: "otherLang",
     i18n: {
@@ -62,7 +62,7 @@ new AiEditor({
 ## 切换语言
 
 ```typescript
-const aiEditor = new AiEditor({
+const aiEditor = new LinwitDocEditor({
     element: "#aiEditor",
     lang: "zh",
     i18n: {

+ 4 - 4
docs/zh/config/image.md

@@ -3,12 +3,12 @@
 ## 示例代码
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     image: {
         allowBase64: true,
         defaultSize: 350,
-        customMenuInvoke: (editor: AiEditor) => {
+        customMenuInvoke: (editor: LinwitDocEditor) => {
         },
         uploadUrl: "https://your-domain/image/upload",
         uploadFormName: "image", //上传时的文件表单名称
@@ -90,7 +90,7 @@ new AiEditor({
 Typescript:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     image: {
         uploadUrl: "https://your-domain/image/upload",
@@ -122,7 +122,7 @@ Javascript:
 
 
 ```js
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     image: {
         uploadUrl: "https://your-domain/image/upload",

+ 10 - 10
docs/zh/config/layout.md

@@ -1,6 +1,6 @@
 # 自定义布局
 
-默认情况下,AiEditor 在初始化的时候,会创建编辑器的头部菜单、编辑区域以及底部的字数显示区域。
+默认情况下,LinwitDocEditor 在初始化的时候,会创建编辑器的头部菜单、编辑区域以及底部的字数显示区域。
 如下图所示:
 
 ![](../../assets/image/aieditor-areas.png)
@@ -13,16 +13,16 @@
 <!doctype html>
 <html lang="en">
 <head>
-    <title>AiEditor Demo</title>
+    <title>LinwitDocEditor Demo</title>
     <meta charset="UTF-8"/>
     <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
     <link type="text/css" rel="stylesheet" href="aieditor/style.css">
     <script type="module">
-        import {AiEditor} from 'aieditor/index.js'
-        new AiEditor({
+        import {LinwitDocEditor} from 'aieditor/index.js'
+        new LinwitDocEditor({
             element: "#aiEditor",
             placeholder: "点击输入内容...",
-            content: 'AiEditor 是一个面向 AI 的下一代富文本编辑器。',
+            content: 'LinwitDocEditor 是一个面向 AI 的下一代富文本编辑器。',
         })
     </script>
 </head>
@@ -37,7 +37,7 @@
 ## 自定义布局
 
 在某些场景下,我们想自定义整个 UI 布局,比如:类腾讯文档风格(演示地址: http://doc.aieditor.com.cn ),又或者其他自定义布局形式。
-我们可以通过 AiEditor 自定义的 UI 来实现。
+我们可以通过 LinwitDocEditor 自定义的 UI 来实现。
 
 
 
@@ -47,16 +47,16 @@
 <!doctype html>
 <html lang="en">
 <head>
-    <title>AiEditor Demo</title>
+    <title>LinwitDocEditor Demo</title>
     <meta charset="UTF-8"/>
     <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
     <link type="text/css" rel="stylesheet" href="aieditor/style.css">
     <script type="module">
-        import {AiEditor} from 'aieditor/index.js'
-        new AiEditor({
+        import {LinwitDocEditor} from 'aieditor/index.js'
+        new LinwitDocEditor({
             element: "#aiEditor",
             placeholder: "点击输入内容...",
-            content: 'AiEditor 是一个面向 AI 的下一代富文本编辑器。',
+            content: 'LinwitDocEditor 是一个面向 AI 的下一代富文本编辑器。',
         })
     </script>
 </head>

+ 1 - 1
docs/zh/config/lineHeight.md

@@ -4,7 +4,7 @@
 ## 示例代码
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     lineHeight:{
         values:["1.0", "1.1", "2.0", "..."],

+ 1 - 1
docs/zh/config/link.md

@@ -4,7 +4,7 @@
 ## 示例代码
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     link: {
         autolink: true,

+ 2 - 2
docs/zh/config/mention.md

@@ -5,7 +5,7 @@
 ## 示例代码
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     onMentionQuery: (query: string) => {
         return [
@@ -41,7 +41,7 @@ new AiEditor({
 })
 ```
 
-当用户在编辑器输入 `@` 符号时,AiEditor 会自动调用 `onMentionQuery` 方法获取用户列表,
+当用户在编辑器输入 `@` 符号时,LinwitDocEditor 会自动调用 `onMentionQuery` 方法获取用户列表,
 参数 `query` 表示用户输入的内容,例如用户输入 `@michael` ,此时,`query` 的值为 `michael`。
 
 ## 返回 Promise

+ 1 - 1
docs/zh/config/paste.md

@@ -6,7 +6,7 @@
 ## 示例代码
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     htmlPasteConfig: {
         pasteAsText: false,

+ 2 - 2
docs/zh/config/shortcut.md

@@ -12,10 +12,10 @@ AIEditor 提供了许多快捷键,用于操作当前的文档。
 如下代码所示:
 
 ```ts
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
-    onSave:(editor: AiEditor)=>{
+    onSave:(editor: LinwitDocEditor)=>{
         //通过这里进行保存的逻辑操作
     }
 })

+ 9 - 9
docs/zh/config/theme.md

@@ -6,10 +6,10 @@
 默认情况下,AIEditor 使用亮色主题。
 
 ```typescript 5
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
-    content: 'AiEditor 是一个面向 AI 的开源富文本编辑器。 ',
+    content: 'LinwitDocEditor 是一个面向 AI 的开源富文本编辑器。 ',
     // theme: "light",
 })
 ```
@@ -19,10 +19,10 @@ new AiEditor({
 可以通过配置 `theme: "dark"` 来启用暗色主题。
 
 ```typescript 5
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
-    content: 'AiEditor 是一个面向 AI 的开源富文本编辑器。 ',
+    content: 'LinwitDocEditor 是一个面向 AI 的开源富文本编辑器。 ',
     theme: "dark",
 })
 ```
@@ -30,10 +30,10 @@ new AiEditor({
 ## 切换主题
 
 ```typescript 5
-const eidtor = new AiEditor({
+const eidtor = new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
-    content: 'AiEditor 是一个面向 AI 的开源富文本编辑器。 ',
+    content: 'LinwitDocEditor 是一个面向 AI 的开源富文本编辑器。 ',
 })
 
 //若当前主题为亮色,则切换为暗色,若为暗色,则切换为亮色。
@@ -133,11 +133,11 @@ editor.changeTheme("light")
 <!doctype html>
 <html lang="en">
 <head>
-    <title>AiEditor Demo</title>
+    <title>LinwitDocEditor Demo</title>
     <link type="text/css" rel="stylesheet" href="aieditor/style.css">
     <script type="module">
-        import {AiEditor} from 'aieditor/index.js'
-        new AiEditor({
+        import {LinwitDocEditor} from 'aieditor/index.js'
+        new LinwitDocEditor({
             element: "#aiEditor",
         })
     </script>

+ 10 - 10
docs/zh/config/toolbar.md

@@ -3,7 +3,7 @@
 ## 示例代码
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     toolbarKeys: ["undo", "redo", "brush", "eraser",
         "|", "heading", "font-family", "font-size",
@@ -17,7 +17,7 @@ new AiEditor({
 })
 ```
 
-以上的配置为 AiEditor 工具类的默认配置,`"|"` 代表的是分割线,其他的含义如下:
+以上的配置为 LinwitDocEditor 工具类的默认配置,`"|"` 代表的是分割线,其他的含义如下:
 
 - undo: 撤销
 - redo: 重做
@@ -70,7 +70,7 @@ new AiEditor({
 通过配置 `toolbarSize` 用于设置工具栏按钮尺寸:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     toolbarSize: 'medium', // 默认 small,可选 'small' | 'medium' | 'large'
 })
@@ -81,7 +81,7 @@ new AiEditor({
 通过配置 `toolbarExcludeKeys` 用于排除部分工具的初始化,示例代码如下:
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     toolbarExcludeKeys: ["heading", "font-family", "font-size", "ai"],
 })
@@ -89,10 +89,10 @@ new AiEditor({
 
 ## 自定义工具栏
 
-在 AiEditor 中,我们可以通过在 `toolbarKeys` 配置中进行自定义工具栏的扩展,配置示例代码如下:
+在 LinwitDocEditor 中,我们可以通过在 `toolbarKeys` 配置中进行自定义工具栏的扩展,配置示例代码如下:
 
 ```typescript 7-12
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     toolbarKeys: ["undo", "redo", "brush", "eraser",
         "|", "heading", "font-family", "font-size",
@@ -112,7 +112,7 @@ new AiEditor({
 
 自定义工具类配置项说明:
 
-- **icon**:用于菜单显示的 icon,暂时只支持 svg 配置,svg icon 建议使用 https://remixicon.com 提供的 icon,以保证和 AiEditor
+- **icon**:用于菜单显示的 icon,暂时只支持 svg 配置,svg icon 建议使用 https://remixicon.com 提供的 icon,以保证和 LinwitDocEditor
   的 icon 风格保持统一。
 - **html**:自定义菜单的 html 内容,这个配置会覆盖 icon 配置,导致 icon 不生效, `icon` 和 `html` 只能配置其中一个。
 - **onClick**:鼠标点击菜单的事件监听。
@@ -121,7 +121,7 @@ new AiEditor({
 **tip国际化配置示例代码**
 
 ```ts 12,18,21
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     toolbarKeys: ["undo", "redo", "brush", "eraser",
         "|", "heading", "font-family", "font-size",
@@ -156,7 +156,7 @@ new AiEditor({
 配置代码如下:
 
 ```typescript 11-15
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     toolbarKeys: ["undo", "redo", "brush", "eraser",
         "|", "heading", "font-family", "font-size",
@@ -188,7 +188,7 @@ new AiEditor({
 在菜单分组中,添加自定义的菜单按钮,示例代码如下:
 
 ```typescript 15-22
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     toolbarKeys: ["undo", "redo", "brush", "eraser",
         "|", "heading", "font-family", "font-size",

+ 2 - 2
docs/zh/config/video.md

@@ -3,10 +3,10 @@
 ## 示例代码
 
 ```typescript
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     video: {
-        customMenuInvoke: (editor: AiEditor) => {
+        customMenuInvoke: (editor: LinwitDocEditor) => {
         },
         uploadUrl: "https://your-domain/video/upload",
         uploadFormName: "video", //上传时的文件表单名称

+ 2 - 2
docs/zh/contact-us-bak.md

@@ -49,8 +49,8 @@ layout: home
 <div style="color: #999;margin: 40px;">
 
 <p style="margin:5px 0;">嗨,这里是贵州小码科技有限公司,</p>
-<p style="margin:5px 0;">我是 Jenny,AiEditor 联合创始人。 </p>
-<p style="margin:5px 0;">您可以跟我聊聊:您如何使用 AiEditor ; </p>
+<p style="margin:5px 0;">我是 Jenny,LinwitDocEditor 联合创始人。 </p>
+<p style="margin:5px 0;">您可以跟我聊聊:您如何使用 LinwitDocEditor ; </p>
 <p style="margin:5px 0;">也可以向我了解:更多关于商业 Pro 版本; </p>
 <p style="margin:5px 0;">也可以跟我讨论:双方如何合作... </p>
 <p style="margin:5px 0;">期待您通过下面方式,与我取得联系。 </p>

+ 5 - 5
docs/zh/demo-bak.md

@@ -8,7 +8,7 @@ layout: home
 #  tagline: Out-of-the-box, Fully Framework Supported, Markdown Friendly
 #  image:
 #    src: /assets/image/index-banner.png
-#    alt: AiEditor
+#    alt: LinwitDocEditor
 #  actions:
 #    - theme: brand
 #      text: Quick Start
@@ -21,11 +21,11 @@ layout: home
 
 #features:
 #  - title: Lightweight
-#    details: AiEditor is ready to use out of the box, Development based on Web Components, and does not depend on any rendering framework such as VUE, React or Angular, making it compatible with almost any framework.
+#    details: LinwitDocEditor is ready to use out of the box, Development based on Web Components, and does not depend on any rendering framework such as VUE, React or Angular, making it compatible with almost any framework.
 #  - title: Intelligent
-#    details: AiEditor supports AI continuation, AI optimization, AI proofreading, AI translation, and custom AI menus with their respective Prompts. It supports integration with models like ChatGPT, Spark and private LLMs.
+#    details: LinwitDocEditor supports AI continuation, AI optimization, AI proofreading, AI translation, and custom AI menus with their respective Prompts. It supports integration with models like ChatGPT, Spark and private LLMs.
 #  - title: Powerful
-#    details: In addition to basic functions, AiEditor also supports features that many top editors do not have, such as format painting, merging and unmerging of cells, light and dark themes, mobile adaptation, and more.
+#    details: In addition to basic functions, LinwitDocEditor also supports features that many top editors do not have, such as format painting, merging and unmerging of cells, light and dark themes, mobile adaptation, and more.
 ---
 
 
@@ -35,7 +35,7 @@ layout: home
 
 <div style="margin: 30px 0 40px;color: #999">
 
-当前版本为开源版,商业 Pro 版演示请联系 AiEditor 联合创始人 Jenny 获取
+当前版本为开源版,商业 Pro 版演示请联系 LinwitDocEditor 联合创始人 Jenny 获取
 
 </div>
 

+ 3 - 3
docs/zh/getting-started.md

@@ -22,13 +22,13 @@ HTML:
 Typescript:
 
 ```typescript
-import {AiEditor} from "aieditor";
+import {LinwitDocEditor} from "aieditor";
 import "aieditor/dist/style.css"
 
-new AiEditor({
+new LinwitDocEditor({
     element: "#aiEditor",
     placeholder: "点击输入内容...",
-    content: 'AiEditor 是一个面向 AI 的开源富文本编辑器。 ',
+    content: 'LinwitDocEditor 是一个面向 AI 的开源富文本编辑器。 ',
     ai: {
         models: {
             spark: {

+ 3 - 3
docs/zh/index.md

@@ -20,14 +20,14 @@ hero:
 
 <div class="aieditor-home">
 
-# 为什么选择 AiEditor
+# 为什么选择 LinwitDocEditor
 
 <div class="subtitle">
 简单、好用、开源协议友好,无用户数量和应用数量限制,文档丰富。<br />
 Gitee GVP 项目(最有价值开源项目)https://gitee.com/aieditor-team/aieditor
 </div>
 
-|           | 其他编辑器                  | AiEditor                                       |
+|           | 其他编辑器                  | LinwitDocEditor                                       |
 |-----------|:-----------------------|:-----------------------------------------------|
 |           |
 | 开源协议      | <Unhappy /> GPL,具有传染性  | <Check />  LGPL,通过 NPM 安装不具有传染性                |
@@ -172,7 +172,7 @@ AI 帮你检查拼写与语法错误;将 10 个字扩写成 200 字;也能
 
 #  集成优秀产品
 <div class="subtitle">
-我们将优秀的开源作品集成到 AiEditor,比如虚拟白板,手绘草图,图表编辑器等。
+我们将优秀的开源作品集成到 LinwitDocEditor,比如虚拟白板,手绘草图,图表编辑器等。
 </div>
 </div>
 

+ 11 - 11
docs/zh/pro.md

@@ -1,18 +1,18 @@
-# AiEditor Pro 版本
+# LinwitDocEditor Pro 版本
 
-很高兴,我们终于推出了 AiEditor Pro 商业 Pro 版了!
+很高兴,我们终于推出了 LinwitDocEditor Pro 商业 Pro 版了!
 
 > 版预览地址:http://pro.aieditor.com.cn
 
-AiEditor Pro 的推出,有几个重大的意义:
+LinwitDocEditor Pro 的推出,有几个重大的意义:
 
-- 1、AiEditor 有了自己的商业模式,不用担心用着用着不更新了。
-- 2、AiEditor 可以赚钱了,工作更积极 😊。
+- 1、LinwitDocEditor 有了自己的商业模式,不用担心用着用着不更新了。
+- 2、LinwitDocEditor 可以赚钱了,工作更积极 😊。
 
-使用 AiEditor Pro 版本的好处:
+使用 LinwitDocEditor Pro 版本的好处:
 
-- 1、**更加强大的功能**:AiEditor Pro 拥有更加强大和实用的功能,能够帮助您构建一个专业的需要文字编辑类的产品。
-- 2、**优先的支持和服务**:AiEditor Pro 为您提供更专业、更高级别的的服务,可以快速地解决问题,帮助您的产品更快地走上正轨。
+- 1、**更加强大的功能**:LinwitDocEditor Pro 拥有更加强大和实用的功能,能够帮助您构建一个专业的需要文字编辑类的产品。
+- 2、**优先的支持和服务**:LinwitDocEditor Pro 为您提供更专业、更高级别的的服务,可以快速地解决问题,帮助您的产品更快地走上正轨。
 
 ## 版本对比
 
@@ -49,12 +49,12 @@ AiEditor Pro 的推出,有几个重大的意义:
 > 购买后,支持开具普通发票或专用发票。
 
 
-2. **购买 AiEditor 后是否可以退货退款**
-> AiEditor 提供的付费版本属于虚拟产品,请你在购买前确认服务内容、功能和条款,一经购买后不支持退货和退款,请您谅解。
+2. **购买 LinwitDocEditor 后是否可以退货退款**
+> LinwitDocEditor 提供的付费版本属于虚拟产品,请你在购买前确认服务内容、功能和条款,一经购买后不支持退货和退款,请您谅解。
 
 
 3. **商用授权如何保障?**
-> AiEditor 官方提供的付费软件享有版权保障,您可放心商用; 购买付费版软件后,我们将为您签订授权合同,提供商用授权书,保障您的商用权益。
+> LinwitDocEditor 官方提供的付费软件享有版权保障,您可放心商用; 购买付费版软件后,我们将为您签订授权合同,提供商用授权书,保障您的商用权益。
 
 
 ## 联系方式

+ 9 - 9
docs/zh/versions.md

@@ -11,7 +11,7 @@ layout: home
 
 # 商业许可证
 
-AiEditor 商业 Pro 版拥有更强大和实用的功能,能够帮助您构建一个专业的知识类产品。<br />
+LinwitDocEditor 商业 Pro 版拥有更强大和实用的功能,能够帮助您构建一个专业的知识类产品。<br />
 另外,为您提供更专业、更高级别的的服务,可以快速地响应问题,帮您的产品更快地走上正轨。
 </div>
 
@@ -81,16 +81,16 @@ AiEditor 商业 Pro 版拥有更强大和实用的功能,能够帮助您构建
 
 <div class="versions-qa-list">
 <Question title="用在商业环境,必须要购买商业许可证吗?">
-不是。AiEditor 的内核是 LGPL 协议,如果不对 AiEditor 二次开发,并且保留 AiEditor 版权信息和版本信息,就可以免费使用。
+不是。LinwitDocEditor 的内核是 LGPL 协议,如果不对 LinwitDocEditor 二次开发,并且保留 LinwitDocEditor 版权信息和版本信息,就可以免费使用。
 </Question>
 </div>
 
 <div class="versions-qa-list">
 <Question title="购买商业许可证的好处?" >
-1、可以将 AiEditor 构建嵌入到您的产品或应用程序中,并可以对 AiEditor 二次开发;<br />
-2、开发的产品或者程序可以去掉 AiEditor 的版权和版本信息;<br />
-3、更加强大的功能:AiEditor 商业 Pro 版拥有更强大和实用的功能,能帮助您构建一个专业的知识类产品。<br />
-4、优先的支持和服务:AiEditor 商业 Pro 版为您提供更专业、更高级别的的服务,可以快速地响应问题,帮助您的产品更快地走上正轨。
+1、可以将 LinwitDocEditor 构建嵌入到您的产品或应用程序中,并可以对 LinwitDocEditor 二次开发;<br />
+2、开发的产品或者程序可以去掉 LinwitDocEditor 的版权和版本信息;<br />
+3、更加强大的功能:LinwitDocEditor 商业 Pro 版拥有更强大和实用的功能,能帮助您构建一个专业的知识类产品。<br />
+4、优先的支持和服务:LinwitDocEditor 商业 Pro 版为您提供更专业、更高级别的的服务,可以快速地响应问题,帮助您的产品更快地走上正轨。
 </Question>
 
 </div>
@@ -124,12 +124,12 @@ AiEditor 商业 Pro 版拥有更强大和实用的功能,能够帮助您构建
 
 <div class="versions-qa-list">
 <Question title="技术支持有效期是多久?" >
-6个月,根据经验,您完全可以在6个月内掌握 AiEditor 的使用。 
+6个月,根据经验,您完全可以在6个月内掌握 LinwitDocEditor 的使用。 
 </Question>
 </div>
 <div class="versions-qa-list">
 <Question title="授权版和商业 Pro 版的区别?" >
-授权版是在开源版的基础上,购买授权,您可以对 AiEditor进行二开,或者直接集成到您的产品中商用,同时,可以去掉 AiEditor 的版权和logo信息。<br/>
+授权版是在开源版的基础上,购买授权,您可以对 AiEditor进行二开,或者直接集成到您的产品中商用,同时,可以去掉 LinwitDocEditor 的版权和logo信息。<br/>
 商业 Pro 版是在授权版的基础上,提供更强大的功能支持,比如协同、批注、word导入导出等等。同时,也提供更专业、更高级别的的服务,可以快速地解决问题。
 </Question>
 </div>
@@ -144,7 +144,7 @@ AiEditor 商业 Pro 版拥有更强大和实用的功能,能够帮助您构建
 
 # 购买
 
-通过邮件或微信联系 AiEditor 联合创始人 Jenny
+通过邮件或微信联系 LinwitDocEditor 联合创始人 Jenny
 <p><a href="/zh/contact-us.html"  style="background: #1b1b1f;color: #fff;padding: 10px 50px;border-radius: 5px;font-weight: bold;font-size: 14px;margin: 20px 0 40px 0;text-decoration:none;display:inline-block;">
 联系我们
 </a></p>

+ 8 - 8
docs/zh/what-is-ai-editor.md

@@ -1,12 +1,12 @@
-# AiEditor 是什么
+# LinwitDocEditor 是什么
 
 
 ## 简介
 
-> AiEditor 是一个面向 AI 的下一代富文本编辑器,它基于 Web Component 开发,因此支持 Layui、Vue、React、Angular、Svelte 等几乎任何前端框架。她适配了 PC Web 端和手机端,并提供了 亮色 和 暗色 两个主题。除此之外,她还提供了灵活的配置,开发者可以方便的使用其开发任何文字编辑的应用。
+> LinwitDocEditor 是一个面向 AI 的下一代富文本编辑器,它基于 Web Component 开发,因此支持 Layui、Vue、React、Angular、Svelte 等几乎任何前端框架。她适配了 PC Web 端和手机端,并提供了 亮色 和 暗色 两个主题。除此之外,她还提供了灵活的配置,开发者可以方便的使用其开发任何文字编辑的应用。
 
 
-## 为什么要开发 AiEditor
+## 为什么要开发 LinwitDocEditor
 
 现在,AI 时代已到,AIGC 正在蓬勃发展。
 
@@ -19,15 +19,15 @@
 > 在使用 CKEditor、TinyMCE、和 Tiptap 等编辑器的 AI 功能时,必须使用他们的 **_付费_** 插件,以及 AI 的云服务。在这种情况下,我们基于其开发的应用就回面临许多限制,
 > 比如:无法私有化部署,无法使用私有的大模型 ApiKey 等。
 
-因此,所以我才决定开发了 AiEditor,用于解决以上问题。
+因此,所以我才决定开发了 LinwitDocEditor,用于解决以上问题。
 
 
-## AiEditor 的定位
+## LinwitDocEditor 的定位
 
-1. 我们开发 AiEditor 的初衷,本身是为了解决 AI 编辑问题的。所以,在 AI 方面,AiEditor 支持使用私有的 ApiKey 对接任何的大模型,包括 ChatGPT、讯飞星火、文心一言以及任何的私有化大模型。
-2. 我们希望 AiEditor 拥有更多的使用场景,不受限于任何的 UI 渲染框架,比如 Vue、React、Angular、Svelte 等。 因此我们是基于 Web Component 开发的,它可以很好的和任何框架集成。
+1. 我们开发 LinwitDocEditor 的初衷,本身是为了解决 AI 编辑问题的。所以,在 AI 方面,LinwitDocEditor 支持使用私有的 ApiKey 对接任何的大模型,包括 ChatGPT、讯飞星火、文心一言以及任何的私有化大模型。
+2. 我们希望 LinwitDocEditor 拥有更多的使用场景,不受限于任何的 UI 渲染框架,比如 Vue、React、Angular、Svelte 等。 因此我们是基于 Web Component 开发的,它可以很好的和任何框架集成。
 3. 我们提供了友好的 UI 页面,支持亮色和暗色两个主题,支持使用 Markdown 的书写习惯、支持灵活的功能配置以及自定义布局,以及使用了比 CKEditor 和 TinyMCE 更加友好的开源协议 LGPL。
-4. 除此之外,我们会继续学习优秀的产品,比如 Notion 等,为大家提供一些列的好用的 AI 功能... 当然,目前 AiEditor 还在持续进化中,我们需要你的支持。
+4. 除此之外,我们会继续学习优秀的产品,比如 Notion 等,为大家提供一些列的好用的 AI 功能... 当然,目前 LinwitDocEditor 还在持续进化中,我们需要你的支持。