close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

HTML Editor adding doc type and style sheet links?

Thread began 6/14/2012 5:10 pm by Andrew Read | Last modified 6/15/2012 11:52 am by Jason Byrnes | 2078 views | 7 replies |

Andrew Read

HTML Editor adding doc type and style sheet links?

Not sure that I have ever seen HTML editor do this before, but it is adding a doctype and the stylesheet links to the code I have within it. Is it possible to turn this off? I am only hoping to use it as a simple WYSIWYG editor and I don't want all of that other stuff added, the pages the database info is pulled from will have all of that already. :)

thanks.

Sign in to reply to this post

Andrew Read

In fact every time that I update the form it adds all of this again:

php:
<p>
    &lt;\!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;</p>
<title>Rich text editor, page_body, press ALT 0 for help.</title>
<link href="../../styles/reset.css" rel="stylesheet" type="text/css" />
<link href="../../styles/layout.css" rel="stylesheet" type="text/css" />
<link href="../../styles/text.css" rel="stylesheet" type="text/css" />
<p>
</p>
<p>
    &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;</p>
<title></title>
<link href="../../styles/reset.css" rel="stylesheet" type="text/css" />
<link href="../../styles/layout.css" rel="stylesheet" type="text/css" />
<link href="../../styles/text.css" rel="stylesheet" type="text/css" />
<p>
    &nbsp;</p>
<p>
    &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;</p>
<title></title>
<link href="../../styles/reset.css" rel="stylesheet" type="text/css" />
<link href="../../styles/layout.css" rel="stylesheet" type="text/css" />
<link href="../../styles/text.css" rel="stylesheet" type="text/css" />
<p>
    &nbsp;</p>
<p class="centreBox">
    <img alt="Client at Camera" class="centreImage"  src="/site_pages/MG_Camera_1.jpg" style="width: 500px; height: 333px;" /></p>
<div class="centreBox">
    <div class="dropRightImage">



More than a bit annoying. :) Any ideas as to how to stop this from happening, AND how to make that the default for future sites that I create?

Sign in to reply to this post

Andrew Read

Inside here?

I believe that there is an error in this part of the code:

php:
$CKEditor_config["docType"] = "<\!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";



As if I remove the doctype info and leave "" then it doesn't load it into the database each time (the stylesheet info either.)

php:
$CKEditor_config["docType"] = "";



Something to do with not escaping a quote properly?

Sign in to reply to this post

Jason ByrnesWebAssist

this seams to be a bug on adding the doctype to the HTML Editor instance.

the issue is c aused by the forward slash before the !:

php:
$CKEditor_config["docType"] = "<\!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";



should be:

php:
$CKEditor_config["docType"] = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";



I have logged this in our bug base.

Sign in to reply to this post

Andrew Read

OK, thanks.

Now onto a related question: If I wanted to have the preview created with the header and footer from the site when the user views it, is there an easy way for me to code those into the preview?

THank you.

Sign in to reply to this post

Andrew Read

Also, is there any way that the known bugs stickies can be updated with these as they are found? It would help other users to have these known issues all in one area as well. Maybe with a link to the thread that has the solution, such as this one?

Thanks again!

Sign in to reply to this post

Jason ByrnesWebAssist

I dont see anything in the CKEditor documentation that allows you to customize the preview.

Sign in to reply to this post

Jason ByrnesWebAssist

RE Bug Stickies: I can understand where your request is coming from, but I don't think all issues should be stuck.

for example, it took me 30 minutes today to come up with the scenario that created the code you mentioned. In my experience, when a sticky is put up, every one assumes that the issue applies to them, I have seen this cause more harm than good in some cases.

There have been many instances where I have put up a sticky for an issue, and people have implemented the fix when it was not needed and ended breaking something else.


Instead of concentrating on posting sticky's for all known issues, we are trying to concentrate on releasing updates to correct them

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...