Click here to Skip to main content
14,733,013 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Please help me

i want to save text in database table through text editor and then retrieve data into same text editor for update content

What I have tried:

How to Save Text Editor's text into Database and Retrieve into Text editors
Updated 5-Sep-20 12:13pm

1 solution

High level, you would define a database field in DB that can store text/blob and then pass the entire HTML of your rich text (from your text editor) to play around.

Major steps:
1. NVARCHAR datatype for saving HTML tags in DB
2. Get HTML equivalent of the text editor and save it in DB
3. Retrieve the HTML content when needed and set back the HTML data back into text editor

Following reference would help: Save (Insert) and Retrieve (Display) TinyMCE contents from database in ASP.Net[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900