Moved on with this a little more; added some things in needed...
Thanks for sharing. I will consider using this on one of my web sites. Not quite sure how I'll add sanitization, but the pages using this HTML editor are ONLY used by site admins to create messages and some content - not end users.
Sanitization is often required if such pages that "allow" HTML editing are public facing, since one does not want users to say inject JavaScript into the content. However, lack of sanitization could be a "feature" in the sense that when/if ONLY site admins are using the HTML editor for adding content to the site, then one tends not to care about "dangerous" content being used or added via such an HTML editor.
I don't require sanitization at this point in time.....
Busy and not a top priority right now but I will give this editor a try on one of my sites - just to see how well it works compared to the existing HTML editor I'm using. For images, I currently use "in-line" images which of course become base64 strings, and is a feature I use quite a bit right now.
So, I'll try this time permitting -- and post back to see how well this suits my needs....
Again, such editors have a zillion use cases, and often the use cases are VERY surprising. I have a "issues" database, and the choices are managed by a HTML editor, and thus to add a new software system, we can paste in a new choice, but the choice can include HTML.
So, choices look like this right now:
In above, the "Project" choices from a database, but the "choices" are in fact edited with a HTML editor. So, in place of a simple combo box dropdown, we have nice grapic image choices. But, it still the equiliavnt of a combo box. In fact, I just feed the .net radiobutton list with the list of choices, but as above shows, the Project, the Isssue, the Priority? They are all HTML choices, so above looks MUCH nicer then just 3 combo boxes, but code behind really is the SAME as if we just used combo boxes for the choices.
So, the point? Well, then the choices on the site become rather nice looking, since we not limited to a simple combo box for such choices, but can include image + text. The editor thus looks like this:
So, for a "choice" of project type, I can have text, graphics, or both. It means as a developer, I allow the admin to add new project types, but they are a whole lot nicer then just a combo box with text.
I should also point out that often when editing a issue, they include a screen shot - again, a HTML editor allows this. In above, that screen shot is of a ms-access application.......
Needless to say, this means that HTML editors have boatloads of use cases......
R
Albert