All Projects → JideGuru → rich_editor

JideGuru / rich_editor

Licence: Apache-2.0 license
WYSIWYG editor for Flutter with a rich set of supported formatting options. (WIP)

Programming Languages

dart
5743 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
ruby
36898 projects - #4 most used programming language
CSS
56736 projects
swift
15916 projects

Projects that are alternatives of or similar to rich editor

typester
✒️ A WYSIWYG that gives you predictable and clean HTML
Stars: ✭ 29 (-75.63%)
Mutual labels:  text-editor, html-editor
Lime
Open source API-compatible alternative to the text editor Sublime Text
Stars: ✭ 15,283 (+12742.86%)
Mutual labels:  text-editor
React Editext
Editable Text Component for React Apps
Stars: ✭ 199 (+67.23%)
Mutual labels:  text-editor
Kuriimu
A general purpose game translation toolkit for authors of fan translations.
Stars: ✭ 226 (+89.92%)
Mutual labels:  text-editor
Viw
VI Worsened, a lightweight and fun VI clone.
Stars: ✭ 212 (+78.15%)
Mutual labels:  text-editor
Ngx Quill Editor
🍡@quilljs editor component for @angular
Stars: ✭ 234 (+96.64%)
Mutual labels:  text-editor
Slate Plugins
A set of my personal Slate editor plugins, in a monorepo.
Stars: ✭ 191 (+60.5%)
Mutual labels:  text-editor
SynWrite
SynWrite text editor. Not the entire source, because EControl is closed-source. If you get the license for EControl, I will help to compile the SynWrite.
Stars: ✭ 68 (-42.86%)
Mutual labels:  text-editor
Moe
A command line based editor inspired by vi/vim. Written in Nim.
Stars: ✭ 252 (+111.76%)
Mutual labels:  text-editor
Pythonbuddy
Online Python Editor With Live Syntax Checking and Execution
Stars: ✭ 223 (+87.39%)
Mutual labels:  text-editor
Vue Trumbowyg
Vue.js component for Trumbowyg WYSIWYG editor 📝
Stars: ✭ 224 (+88.24%)
Mutual labels:  text-editor
Amp
A complete text editor for your terminal.
Stars: ✭ 2,997 (+2418.49%)
Mutual labels:  text-editor
Mui Rte
Material-UI Rich Text Editor and Viewer
Stars: ✭ 233 (+95.8%)
Mutual labels:  text-editor
Avaloniaedit
Avalonia-based text editor (port of AvalonEdit)
Stars: ✭ 201 (+68.91%)
Mutual labels:  text-editor
FreeOberon
Cross-platform IDE for development in Oberon programming language made in the classical FreePascal-like pseudo-graphic style.
Stars: ✭ 102 (-14.29%)
Mutual labels:  text-editor
Sapling
A highly experimental vi-inspired editor where you edit code, not text.
Stars: ✭ 195 (+63.87%)
Mutual labels:  text-editor
Textosaurus
Cross-platform text editor based on Qt and Scintilla.
Stars: ✭ 224 (+88.24%)
Mutual labels:  text-editor
Textbringer
An Emacs-like text editor written in Ruby
Stars: ✭ 228 (+91.6%)
Mutual labels:  text-editor
PSImageEditors
一个简而至美的图片编辑器 (仿钉钉与微信的图片编辑组件)
Stars: ✭ 32 (-73.11%)
Mutual labels:  text-editor
cride
A light CLI text editor/IDE written in Crystal
Stars: ✭ 47 (-60.5%)
Mutual labels:  text-editor

rich_editor

pub package pub points

WYSIWYG editor for Flutter with a rich set of supported formatting options.

Based on https://github.com/dankito/RichTextEditor, but for Flutter.

Features

  • Bold, Italic, Underline, Strike through, Subscript, Superscript
  • Heading 1 - 6, Text body, Preformatted, Block quote
  • Font (reads all system fonts) (Android only)
  • Font Size
  • Text Color
  • Text Background Color
  • Highlight text
  • Justify Left, Center, Right, Blockquote
  • Indent, Outdent
  • Undo, Redo
  • Unordered List (Bullets)
  • Ordered List (Numbers)
  • Insert local or remote Image
  • Insert Link
  • Insert Checkbox
  • Search
  • Icon indicators

📸 Screenshots

Usage

      // Insert widget into tree
      RichEditor(
        key: keyEditor,
        value: 'initial html here',
        editorOptions: RichEditorOptions(
          placeholder: 'Start typing',
          // backgroundColor: Colors.blueGrey, // Editor's bg color
          // baseTextColor: Colors.white,
          // editor padding
          padding: EdgeInsets.symmetric(horizontal: 5.0),
          // font name
          baseFontFamily: 'sans-serif',
          // Position of the editing bar (BarPosition.TOP or BarPosition.BOTTOM)
          barPosition: BarPosition.TOP,
        ),
        // You can return a Link (maybe you need to upload the image to your
        // storage before displaying in the editor or you can also use base64
        getImageUrl: (image) {
          String link = 'https://avatars.githubusercontent.com/u/24323581?v=4';
          String base64 = base64Encode(image.readAsBytesSync());
          String base64String = 'data:image/png;base64, $base64';
          return base64String;
        },
      )

Get current HTML from editor

String? html = await keyEditor.currentState?.getHtml();
print(html);

Set Focus and Unfocus

await keyEditor.currentState?.focus();
await keyEditor.currentState?.unFocus();

Clear Editor content

await keyEditor.currentState?.clear();

Custom Toolbar

If you're interested in creating your own toolbar check the custom_toolbar_demo.dart in the example

License

Copyright 2021 JideGuru

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].