TEditor2 1.4.4

Awesome HTML editor in Xamarin.Forms. TEditor2 is a version has removed UIWebView based on TEditor.

There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package TEditor2 -Version 1.4.4
dotnet add package TEditor2 --version 1.4.4
<PackageReference Include="TEditor2" Version="1.4.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TEditor2 --version 1.4.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TEditor2, 1.4.4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install TEditor2 as a Cake Addin
#addin nuget:?package=TEditor2&version=1.4.4

// Install TEditor2 as a Cake Tool
#tool nuget:?package=TEditor2&version=1.4.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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

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

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.4.8-preview 127 12/1/2020
1.4.7-preview 136 11/30/2020
1.4.6-preview 104 11/25/2020
1.4.5-preview 109 11/9/2020
1.4.4 201 11/9/2020