This is a migrated thread and some comments may be shown as answers.

[Solved] Retrieving full HTML document from Editor

0 Answers 36 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris
Top achievements
Rank 1
Chris asked on 13 Jan 2011, 06:00 PM
I'm using the Editor MVC extension (v2010_3_1110) in an MVC2 application. I invoke the Editor using EditorFor, and I pre-populate the Value with a complete, valid HTML 4.0 document (including DOCTYPE declaration, with a STYLE node in the HEAD). This works great, the HTML content is displayed properly in the Editor, and submits back to my Controller.

Problem is, what I get back is a fragment of the original document I started with. I get an HTML-commented DOCTYPE, an empty STYLE node, then everything that was inside the BODY tag. Yes, I could re-insert this value back into an HTML template to make a whole document, but it seems like I shouldn't have to.

Is there any way to get the complete HTML document from the Editor on the server side?
Tags
Editor
Asked by
Chris
Top achievements
Rank 1
Share this question
or