Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

bulubuloa/TEditor2

Repository files navigation

TEditor2 for Xamarin

I refactor this project based on TEditor(https://github.com/XAM-Consulting/TEditor), removed UIWebView, and using WKWebView instead. Refactor project to netstandard lib. TEditor is a HTML editor for Xamarin, it has so many build-in features and easy to use.

NuGet

Demo

iOSDemo DroidDemo

Usage

Available on Nuget:https://www.nuget.org/packages/TEditor2/

Call single line from any project or PCL, make sure it must be in UIThread.

        TEditorResponse response = await CrossTEditor.Current.ShowTEditor("<p>XAM consulting</p>");
        if (!string.IsNullOrEmpty(response.HTML))
            _displayWebView.Source = new HtmlWebViewSource() { Html = response.HTML };

If user click save it will return html as string. If user click cancel, it return empty string.

Custom

TEditor allow user to custom toolbar, you can add features when you need it, like

     var toolbar = new ToolbarBuilder().AddBasic().AddH1();
     TEditorResponse response = await CrossTEditor.Current.ShowTEditor("<p>XAM consulting</p>", toolbar);

Also, you can add a new ToolbarItem with new icon like

    var toolbar = new ToolbarBuilder().AddBasic().AddH1("H1Icon.png");

Features

Features Platforms
Bold Xamarin.iOS
Italic Xamarin.Android
Underline
Remove format Basic
Justify center
Justify full
Justify left
Justify right
H1 ... H6
Text color
Add unordered list
Add ordered list Standard
Subscript
Superscript
Strikethrough
Horizontal rule
Indent
Outdent
Undo
Redo
Paragraph All

Powered By:

TEditor2

ZSSRichTextEditor

PopColorPicker

MonoDroid.ColorPickers

About

Awesome HTML editor in Xamarin.Forms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published