How do I populate an editor instance with content from a database, originally created with CKEditor (ie, in html form). I want text to appear in editor pane without the markup, but rendered as originally input...
Thu, 10/18/2012 - 18:21
#1

Re: Populate from Database with ASP.NET Version
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Re: Populate from Database with ASP.NET Version
Re: Populate from Database with ASP.NET Version
In head ...
In body ...
In aspx.cs ...
in the Submit handling
For populating screen from the saved content
protected string WriteEditor() { return htmlContent; // the html saved previously or blank if new }Hope this helps
Dave
Re: Populate from Database with ASP.NET Version
You can convert html control to server control by adding runat="server" in html side ,
such as
then in the code behind you can get or set the value using editor1.Value
such as