AuthorReformatting HTML Posts
Hello to all,
This may be a lack of understanding the editor….
Why does the editor reformat the html code I paste into the editor.
I have a simple html code the begins with <html> and ends with </html>
I paste this into the view source while in html mode window. Then I unselect the view source to show me the page.
When I select the view source again it has removed the <html> tags.
I want to save the raw html code so I set the ‘setMode’ to true and pull the editor val and save. The save code does not include the <html> tags.
How do I set the editor NOT to reformat?
Try pasting this into the editor. I am using the Chrome browser if that matters.
<!DOCTYPE HTML> <html> <head> <meta http-equiv="content-type" content="text/html" /> <title>Test</title> </head> <body> <p>Hello World</p> </body> </html>
The editor will freeze
When I pull the val() from the editor it is not the same identical code that I pasted.
- This reply was modified 3 years, 11 months ago by EricK.
I you open the example and then click the view source the window locks.
Thank you for the interest and for this assistance. We will investigate this scenario.
I would like to suggest you try to use the Editor with HTML tags that are visual (that are using in-between the <body />).
Clarification on one thing.
When pasting html code into the editor should the mode be in the default or should it be in the source view.
I would have thought the editor could maintain the raw html code pasted into the source view. This is not the case with this editor.
It converts the code to character encoding and strips parts of the html.
The editor can only use the editor for coding and displaying of any html entered.
If I wanted to create a simple email document that was html this editor is unable to export the correct html code to complete the email.
Not sure why the editor can not keep the raw code pasted. I had to use the jqxAreaText to accomplish the the email scenario.
That’s to bad the editor can not work in this way, because it is truly an awesome module.
You must be logged in to reply to this topic.