1 Star 0 Fork 0

luoyi/flutter-quill

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Flutter Quill HTML

A extension for flutter_quill package to add support for dealing with conversion to/from html

It uses vsc_quill_delta_to_html package to convert the the delta to HTML

This library is experimental and the support might be dropped at anytime.

Features

- Easy to use
- Support Flutter Quill package

Getting started

dependencies:
  quill_html_converter: ^<latest-version-here>

Usage

First, you need to setup the flutter_quill first

Then you can simply convert to/from HTML

import 'package:quill_html_converter/quill_html_converter.dart';

// Convert Delta to HTML
final html = _controller.document.toDelta().toHtml();

// Load Delta document using HTML
_controller.document =
    Document.fromDelta(Document.fromHtml(html));

Additional information

This will be updated soon.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Dart
1
https://gitee.com/luoyi666/flutter-quill.git
git@gitee.com:luoyi666/flutter-quill.git
luoyi666
flutter-quill
flutter-quill
master

搜索帮助