Visual editor - changes my head code !

User 1653946 Photo


Trial User
2 posts

Dear Coffee cup,

how can I stop the visual editor (within HTML editor) from changing my <head> code?

It seems a very good tool but it is infuriating to have it change my header code.

Example

original header....

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>CSS drop dowm list </title>
<meta http-equiv="generator" content="CoffeeCup HTML Editor (www.coffeecup.com)" />
<meta name="created" content="Wed, 03 Feb 2010 12:45:46 GMT" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />

<lINK rel=stylesheet type=text/css href="css/menu-menu.css" media=screen>
</HEAD>

after visual edit.....

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML lang=en xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>CSS drop dowm list</TITLE>
<META content="CoffeeCup HTML Editor (www.coffeecup.com)" http-equiv=generator>
<META name=created content="Wed, 03 Feb 2010 12:45:46 GMT">
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=description content="">
<META name=keywords content=""><LINK rel=stylesheet type=text/css
href="css/menu-menu.css" media=screen>
<META name=GENERATOR content="MSHTML 8.00.6001.18876"></HEAD>
User 2144239 Photo


Registered User
0 posts

Hi Terence,

One of the most difficult things about creating a WYSWYG editor is trying to bridge the gap between code and visual editing. Although it may sound pretty easy, it's actually a very complex task.

Things are straightforward in a code editor, but when you move that code to a visual editing environment, things start getting messed up. Everything needs to be parsed and changed to visual format so page elements can be moved individually. During that conversion process, a lot of code gets modified, and if any of the markup is invalid or has syntax problems, the visual editor has to try to decipher what you were trying to do and make some assumptions about how to interpret your code. Moreover, when you switch back to the Code Editor, all the changes made in the Visual Editor have to be reverted to code, and the result usually isn't valid.

That's why we recommend sticking to the Code Editor and using the split-screen preview option. This gives you a real-time view of how your Website looks as you work on the code.
User 1653946 Photo


Trial User
2 posts

Hi Monica, thanks for the reply.

Split screen mode looks good.

terry.


Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.