Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 1.92 KB

README.md

File metadata and controls

62 lines (46 loc) · 1.92 KB

TEditor for Xamarin

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/TEditor/

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:

ZSSRichTextEditor

PopColorPicker

MonoDroid.ColorPickers