minimal_html_editor 0.0.3+1 copy "minimal_html_editor: ^0.0.3+1" to clipboard
minimal_html_editor: ^0.0.3+1 copied to clipboard

PlatformAndroidiOS
outdated

Minimal html wysiwyg editor with only context menu formatting options, support flexible height, customize placeholder, intial text, background color, and common textfield callbacks like onFocus, onBlu [...]

General #

Minimal HTML WYSIWYG editor with only context menu formatting options, support flexible height, customize placeholder, intial text, background color, and common textfield callbacks and methods.

Only backbone html, css and js underneath, no libary, no jQuery.

Works great with screen reader.

How to use #

Minimal example #

No constructor fields are required, just insert this into your widget tree:

HtmlEditor(),

Simple example #

Editor with fixed height, custom placeholder and initial content, gray background and onChange callback to update something:

HtmlEditor(
	backgroundColorCssCode: "gray",
	minHeight: 300,
	initialText: "<p>Some initial text</p>",
	placeholder: "Edit me",
	onChange: (content, height) => update(content),
),

Full feature example #

Editor with custom appearance, flexible height, auto scrolling to avoid texts going below keyboard while editing, custom web view title for screen reader and callbacks actions.

ListView(
  controller: scrollController,
	children: [
		...,
		HtmlEditor(
			backgroundColorCssCode: "#555555",
			minHeight: 300,
			flexibleHeight: true,
			autoAdjustScroll: true,
			// Alternatively, make a variable for this to gain access to the web controller and the editor methods
			controller: EditorController(
				scrollController: scrollController,
			),
			initialText: "Some initial text",
			placeholder: "Edit me",
			onChange: (content, height) => update(content),
			onFocus: () => doSomething(),
			onBlur: () => doSomeOtherThing(),
			printWebViewLog: true,
			webViewTitle: "Editor",
		),
		...,
	],
),

Check out Example and API for more.

8
likes
120
points
6
downloads

Publisher

unverified uploader

Weekly Downloads

Minimal html wysiwyg editor with only context menu formatting options, support flexible height, customize placeholder, intial text, background color, and common textfield callbacks like onFocus, onBlur, onChanged.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_inappwebview

More

Packages that depend on minimal_html_editor