Giter VIP home page Giter VIP logo

smithhtmleditor's Introduction

wpf-html-editor

license : MIT framework : WPF

WYSIWYG rich text editor which enables writing content directly inside of wpf applications.

Read more on html editor

wpf-html-editor

Installation

Click here to get html editor related DLL. Download DLL from this link and add reference of this DLL into your WPF application.

Steps

  1. Add below assembly in your XAML page like below:

     xmlns:smith="clr-namespace:Smith.WPF.HtmlEditor;assembly=Smith.WPF.HtmlEditor"
    
  2. Insert editor using assembly name in your XAML page like below:

     <smith:HtmlEditor x:Name="htmlEditor"  />
    

Let us know!

Iโ€™d be really happy if you sent us links to your projects where you use our component. Just send an email to [email protected] and do let us know if you have any questions or suggestion regarding wpf. Skype: @adambarath

Updates

2020/05/06

  1. extend target frameworks to netcoreapp3.0;netcoreapp3.1;net461;net462;net47;net471;net472;net48
  2. add pre-build event to do dotnet restore. Issue description at https://stackoverflow.com/questions/48440223/assets-file-project-assets-json-not-found-run-a-nuget-package-restore

2019/10/31

  1. update to NetCore 3.0

2011/05/02

  1. Add a dependency property named BindingContent to support binding html content to the editor. This property raise update notification via the StatusTextChanged event of the webbrowser control. A new window named BindingTestWindow in SmithHtmlEditor.Demo show how this property works.
  2. A stylesheet is load from the file "smithhtmleditor.stylesheet.css" to set the default style of the editing document when the control is initializing. This can help us to set how the document looks.
  3. Use the xml file "smithhtmleditor.config.xml" to setup the fonts used in the control. So we can configurate the fonts we need.
  4. Update the appearance of the editor under source mode.

2011/01/23

  1. Add HtmlDocument class and HtmlDocument.Range class for document editing instead of directly operating IHTMLDocument2 interface and System.Windows.Forms.HtmlDocument object.
  2. Update HtmlEditingExtension class to extension methods for HtmlDocument object. And some methods were moved into HtmlDocument class.
  3. Fix a bug in HtmlEditor.WordCount property.
  4. Update the HtmlEditor.ContentText property as a get-only property.
  5. The HtmlEditor.Document property is changed from type System.Windows.Forms.HtmlDocument to Smith.WPF.HtmlEditor.HtmlDocument.
  6. Add editing methods for HtmlEditor class.
  7. Add DocumentReady event for HtmlEditor class. This event will be raised after the document is ready to use. And it provides a way to load initial content to editor. See the demo.
  8. Add DocumentStateChanged event for HtmlEditor class to notify the change of document state.

2010/11/20 Upgraded the word counting algorithm and fixed a bug in color selecting.

2010/10/19 Globlization and localization feature is added into this version.

2010/10/17 It is a preview version for test and provides basic functions for common use.

License

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

smithhtmleditor's People

Contributors

adambarath avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

smithhtmleditor's Issues

Caret moves to beginning of document whenever a table cell is edited

When the contents of any table cell is edited in design mode, the caret quickly returns to the beginning of the document.

This causes disruption because the user intends to write in the table cell, but during editing the caret changes position, and so unexpectedly the user starts typing elsewhere.

Here is a screenshot of a table and the rest of the UI for context:
smith wpf table

NullReferenceException in Designmode

Hi there,

I get a NullReferenceException in Designmode

I just followed you instructions:

xmlns:smith="clr-namespace:Smith.WPF.HtmlEditor;assembly=Smith.WPF.HtmlEditor"
...
 <smith:HtmlEditor x:Name="htmlEditor" />

NullReferenceException :
Smith.WPF.HtmlEditor.HtmlEditor.OnTimerTick(Object sender, EventArgs e)
bei System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

why not barathta ?

@adambarath

It would be def. possible and perhaps even easy to build exe (refactoring this code) that would be able to consume standard hta files... Even html would do to start with ...

Unable to see languages list when application is released

I am using this dll in my WPF application. There are no issues while the application is in debug but when the application is released and the, then the languages are not shown.

Using version: 1.0.0

Debug:
image

Release:
image

Can someone help me to resolve this, please.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.