How to store data in a specific format? in WYSWYG?

I use the WYSIWYG 4 window, taking input from the user, so he can enter the font Bold, Italic, etc. How to store such data so that when displayed on any other page the same font styles and formats appear?

+5
source share
2 answers

WYSIWYG is nothing but a Div tag with the Contenteditable attribute, which helps to highlight in bold, italic, etc., and the content you see is a version of the HTML code.

if you want to get HTML code, just get innerHTML of content available for content, it will give you html code. let me know if you need more help.

+3
source

You can create a class with a name FontMetadataand save the data in a tuple, for example

Tuple<Data, DataStyle>
+2
source

All Articles