Skip to content

realth000/flutter_bbcode_editor

Repository files navigation

English | 简体中文

flutter_bbcode_editor

Edit bbcode with WYSIWYG support.

WIP

This package is still work in progress. Feature or API may change in the future.

Introduction

Flutter widget to edit bbcode with WYSIWYG support.

Based on flutter_quill.

Feature

These tags are used in TSDM forum. Allow to disable and override.

  • BBCode tags
    • Font family Not planned
    • Font size [size=$size] (specified value 1~7)
    • Font color [color]
    • Bold [b]
    • Italic [i]
    • Underline [u]
    • Background color [backcolor=$color]
    • Strikethrough [s]
    • Superscript [sup]
    • Alignment
      • Align left [align=left]
      • Align center [align=center]
      • Align right [align=right]
    • Emoji {:emoji_id:}
    • Url [url]
    • Image [img]
      • Specify size [img=$width,$height]$image_url[/img]
    • Spoiler [spoiler]
    • Locked area
      • Locked with reply [hide] Users need to reply to see this content.
      • Locked with points [hide=$points] Only users have points more than $points are allowed to see this content.
    • Mention user with [@]$user_name[/@]
    • Ordered list [list=1]
    • Bullet list [list=]
    • Splitter [hr]
    • Table [table]
    • Code block [code]
    • Quote block [quote]
  • Source code mode
  • Export Output format is not stable yet, changes in future may cause old data unparsable.
    • As bbcode
    • As quill delta
  • Import
    • From BBCode
    • From quill delta
  • Custom tags
  • Nested block styles (code block, quote block, list)