Flutter Quill Extensions는 이미지와 비디오를 편집기 내에서 직접 삽입하고 로드할 수 있도록 지원함으로써 Flutter Quill 리치 텍스트 에디터의 기능을 강화합니다. Flutter Quill의 핵심 기능을 확장하여 사용자가 리치 텍스트 문서에 미디어 콘텐츠를 원활하게 삽입할 수 있게 합니다. 이 패키지는 Android, iOS, Web, macOS, Windows, Linux 등 여러 플랫폼에서 작동하도록 설계되어 고급 콘텐츠 편집 기능이 필요한 크로스플랫폼 애플리케이션에 적합합니다. 기존의 Flutter Quill 설정과 원활하게 통합되며, 미디어 업로드 및 렌더링을 위한 간단한 API를 제공합니다.
사용 사례
임베드된 미디어를 포함한 리치 텍스트 편집
콘텐츠 생성 앱
블로그 또는 노트 작성 플랫폼
협업 문서 편집기
다중 미디어를 갖춘 교육용 앱
주요 기능
이미지 및 비디오 삽입 지원
크로스 플랫폼 호환성
Flutter Quill과의 간편한 통합
미디어 업로드 처리
반응형 미디어 렌더링
적합한 대상
풍부한 텍스트 에디터를 구축하는 개발자
다양한 미디어 콘텐츠 입력이 필요한 앱
크로스플랫폼 데스크톱 및 모바일 앱
콘텐츠 관리 시스템
고려 사항
Flutter Quill 설치가 필요합니다
미디어 저장소를 위한 추가 설정이 필요합니다
파일 업로드를 위해 사용자 정의 백엔드가 필요할 수 있습니다
이미지 및 비디오 확장자로 제한
외부 소스 코드 저장소에 의존
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
Flutter Quill
A rich text editor for Flutter
Flutter Quill is a rich text editor and a Quill component for Flutter.
This library is a WYSIWYG (What You See Is What You Get) editor built
for the modern Android, iOS, web and desktop platforms.
To support copying images to the clipboard to be accessed by other apps, you need to configure your Android project.
If not set up, a warning will appear in the log during debug mode only.
[!TIP]
This is only required on Android for this optional feature.
You should be able to copy images and paste them inside the editor without any additional configuration.
1. Update AndroidManifest.xml
Open android/app/src/main/AndroidManifest.xml and add the following inside the <application> tag:
Create the file android/app/src/main/res/xml/file_paths.xml with the following content:
<paths><cache-pathname="cache"path="." /></paths>
[!NOTE]
Starting with Flutter Quill 10.8.4, super_clipboard is no longer required in flutter_quill or flutter_quill_extensions.
The new default is an internal plugin quill_native_bridge.
If you want to continue using super_clipboard, you can use the quill_super_clipboard package (support may be discontinued).
This library utilizes Quill Delta to represent document content.
The Delta format is a compact and versatile method for describing document changes through a series of operations that denote insertions, deletions, or formatting changes.
Use _controller.document.toDelta() to extract the deltas.
Use _controller.document.toPlainText() to extract plain text.
To save the document:
finalString json = jsonEncode(_controller.document.toDelta().toJson());
// Stores the JSON Quill Delta
To use your own fonts, update your Assets directory and pass in items to QuillToolbarFontFamilyButton's options.
More details
on this commit,
this article
and this.
📦 Embed Blocks
The flutter_quill package provides an interface for all the users to provide their own implementations for embed
blocks.
[!CAUTION]
Storing the Delta as HTML in the database to convert it back to Delta when
loading the document is not recommended due to the structural and functional differences between HTML and Delta (see this comment).
We recommend storing the Document as Delta JSON
instead of other formats (e.g., HTML, Markdown, PDF, Microsoft Word, Google Docs, Apple Pages, XML).
Converting Delta from/to HTML is not a standard feature in Quill JS
or Flutter Quill.
Converts Quill Delta into a simplified document format, making it easier to manage and manipulate text attributes.
[!TIP]
You might want to convert between HTML and Delta for some use cases:
Migration: If you're using an existing system that stores the data in HTML and want to convert the document
data to Delta.
Sharing: For example, if you want to share the Document Delta somewhere or send it as an email.
Save as: If your app has a feature that allows converting Documents to other formats.
Rich text pasting: If you copy some content from websites or apps, and want to paste it into the app.
SEO: In case you want to use HTML for SEO support.
📝 Rich Text Paste
This feature allows the user to paste the content copied from other apps into the editor as rich text.
The plugin quill_native_bridge provides access to the system Clipboard.
[!IMPORTANT]
Currently this feature is unsupported on the web.
See issue #1998 and issue #2220
for more details.
🌐 Translation
The package offers translations for the toolbar and editor widgets, it will follow the system locale unless you set your
own locale.
[!IMPORTANT]
At this time, we prioritize bug fixes and code quality improvements over new features.
Please refrain from submitting large changes to add new features, as they might
not be merged, and exceptions may made.
We encourage you to create an issue or reach out beforehand,
explaining your proposed changes and their rationale for a higher chance of acceptance. Thank you!
We greatly appreciate your time and effort.
To keep the project consistent and maintainable, we have a few guidelines that we ask all contributors to follow.
These guidelines help ensure that everyone can understand and work with the code easier.
Thanks to the welcoming community, the volunteers who helped along the journey, developers, contributors
and contributors who put time and effort into everything including making all the libraries, tools, and the
information we rely on
We are incredibly grateful to many individuals and organizations who have played a
role in the project.
This includes the welcoming community, dedicated volunteers, talented developers and
contributors, and the creators of the open-source tools we rely on.