Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hu-qi opened this issue Nov 12, 2024 · 1 comment
Open

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

hu-qi opened this issue Nov 12, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request welcome-pr Welcome PR

Comments

@hu-qi
Copy link

hu-qi commented Nov 12, 2024

What problem does this feature solve

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

  • Notion
    Notion

  • 飞书文档
    飞书文档

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

@kagol kagol added the enhancement New feature or request label Nov 12, 2024
@kagol kagol added the welcome-pr Welcome PR label Dec 5, 2024
@zzxming zzxming self-assigned this Jan 8, 2025
@kagol
Copy link
Member

kagol commented Jan 22, 2025

Finished by @zzxming in #214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request welcome-pr Welcome PR
Projects
None yet
Development

No branches or pull requests

3 participants