jQWidgets Forums
jQuery UI Widgets › Forums › Editors › Editor › Reformatting HTML
Tagged: editor, javascript editor, jquery editor, jqwidgets editor, jQxEditor
This topic contains 6 replies, has 2 voices, and was last updated by EricK 7 years, 11 months ago.
-
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?Hello EricK,
I tested this example and it seems to work fine.
Could you provide us more details, how to simulate this issue?Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comTry 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.
<a href="https://www.jseditor.io/?key=jqxeditor-pull-value"></a>
I you open the example and then click the view source the window locks.
Hello EricK,
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 />).Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comClarification 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.Thanks again
EricSimple enough,
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.
Thanks
Eric -
AuthorPosts
You must be logged in to reply to this topic.