Secure Web Text Formatting

I am creating a web application that should allow users to store formatted text in a database. Basically, they just need to be able to change the font color, font background color, font size, bold, italics, and underline.

I would like to use something that I can simply attach to the text area to display the formatting bar.

It would be nice to use something that puts formatting on something other than HTML so that I can encode the HTML code while saving it for security. Of course, it would be necessary to convert your own markup to HTML when returning to the browser.

What are the options?

+3
source share
3 answers

FCKEditor is one of the best tricks for you. We use it in one of our ASP.NET MVC web applications, and this is amazing.

Before choosing FCKEditor, he tried another web editor, but the ability to customize them was not good.

Check FCKEditor at: http://www.fckeditor.net/

+3
source

I would look at the HtmlEditor in the latest version of the Ajax Control Toolkit. I have not used it yet - but for free, you cannot beat the price.

http://www.asp.net/ajax/ajaxcontroltoolkit/samples/HTMLEditor/HTMLEditor.aspx

0
source

WymEditor.

WYSIWYM ( , ) XHTML ( WYSIWYG).

It was fine for my small pseudo-CMS module to force users to use only a few specific styles from a list, but I have no idea if it suits your needs.

Plan B is to use TinyMCE, which I prefer more than FCKEdit.

0
source

Source: https://habr.com/ru/post/1712233/


All Articles