opentiny / fluent-editor

Fluent Editor is a rich text editor based on Quill 2.0, which extends rich modules and formats on the basis of Quill. It is powerful and out-of-the-box. Fluent Editor 是一个基于 Quill 2.0 的富文本编辑器,在 Quill 基础上扩展了丰富的模块和格式,功能强大、开箱即用。
https://opentiny.github.io/fluent-editor/
MIT License
160 stars 20 forks source link

✨ [Feature]: 希望支持 / 快捷功能(指令) #121

Open hu-qi opened 2 weeks ago

hu-qi commented 2 weeks ago

What problem does this feature solve

希望支持类似于 Notion 、飞书文档、ckeditor5 输入 / 之后唤起快捷面板

What does the proposed API look like

希望提供的 API 类似 ai-assistant

// AI Assistant requires additional configuration.
// See https://ckeditor.com/docs/ckeditor5/latest/features/ai-assistant/ai-assistant-integration.html#integrating-with-the-proxy-endpoint

import FluentEditor from '@opentiny/fluent-editor'
import { AIAssistant, OpenAITextAdapter } from '@opentiny/fluent-editor-features';

const editor = new FluentEditor('#editor', {
  theme: 'snow',
  plugins: [ AIAssistant, OpenAITextAdapter, /* ... */ ],
  modules: {
    toolbar: [ 'aiCommands', 'aiAssistant', /* ... */ ],
  },
  ai: {
            openAI: {
                apiUrl: 'https://url.to.your.application/ai'
            }
            // ...
        }
})

What is your project name

Blog