close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

html5 doctype

Thread began 7/29/2011 9:31 am by gruant2000381341 | Last modified 2/04/2015 11:38 pm by Ray Borduin | 4469 views | 9 replies |

gruant2000381341

html5 doctype

I just noticed there is no html5 doctype available in the dropdown.
Is there a way to add that in?

Sign in to reply to this post

Jason ByrnesWebAssist

the problem is that the current version of CKEditor does not support the HTML 5 doctype.

Once CK Editor is updated to offer HTML5 support, we will look into updating HTML Editor 3 with the new CKEditor version to add this in.

Sign in to reply to this post

neo314

Can you advise which doctype is best to select if the editor is used to create content within the HTML 5 article tag, but not used to generate the entire page.

In other words, which doctype will create code that is most compatible as content within an HTML 5 article tag?

Sign in to reply to this post

Jason ByrnesWebAssist

HTML 5 does not have strict standards, and supports older HTML code.

I would probably use the HTML 4.0.1 transitional doctype.

Sign in to reply to this post

digitaldesign

HTML5 Support is available in CKEditor 4

Originally Said By: Jason Byrnes
  HTML 5 does not have strict standards, and supports older HTML code.

I would probably use the HTML 4.0.1 transitional doctype.  




CKEditor 4+ does support the doctype of HTML5 now which is how all of our sites are going, with jQuery and MP4 video embedding. Here is a snippet or two from their documentation site:

"All browsers are to be supported for web pages with the Document Type Declaration (DOCTYPE) of HTML5 (<!DOCTYPE html>) except for IE 9 Quirks that will support unknown doctypes."

From: http://docs.ckeditor.com/#!/guide/dev_browsers

and

docType : String
Sets the DOCTYPE to be used when loading the editor content as HTML.

// Set the DOCTYPE to the HTML 4 (Quirks) mode.
config.docType = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">';
Defaults to: '<!DOCTYPE html>'

from: http://docs.ckeditor.com/#!/api/CKEDITOR.config

What version of CKEditor is being used in HTML Editor and can we update this ourselves to the most current version or do we wait for an update to Data Bridge?

Thanks!
Monica

Sign in to reply to this post

Jason ByrnesWebAssist

the most current version of Data Bridge uses HTML Editor 4.3.3.


to manually update the creditor files:

in the webassist/ folder, rename the ckeditor folder to ckeditor_bak

On this page:
download

click the button to launch CK Builder. Select to use the Full Preset, and the Kama Skin.

Copy the downloaded CKEditor folder to the webassist folder in your site.

from the ckeditor_back folder, copy the following three files:
ckeditor.php
ckeditor-php4.php
ckeditor-php5.php


and paste them in the new ckeditor folder.

Sign in to reply to this post

TroyD

Jason,

I followed these steps however, when editing an HTML Editor instance, I still don't have an option for HTML5 in the doctype dropdown. I've deleted the .dat file and restarted DW just in case but that didn't help. Is there something else I have to do after manually updating the CKEditor?

Thanks,
TroyD

Sign in to reply to this post

Jason ByrnesWebAssist

HTMNL Editor does not offer the HTML 5 option.

you will need to edit the code after it is generated and chacnge:
$CKEditor_config["docType"] = "<" ."!" ."DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";

to:
$CKEditor_config["docType"] = "<" ."!" ."DOCTYPE html>";


NOTE, the doctype is only applied if you set the option for full page editing.

Sign in to reply to this post

TroyD

Thanks Jason. I wondered if I could just change that line but wasn't sure. I also didn't realize that the doctype only affected the full screen editing.

What I was trying to do is constrain the html generated when a user enters text and formatting into the editor, to be HTML5 valid. The pages that the entered text is displayed on is an HTML5 page but the code generated doesn't validate and it bothers my client. For example, tables include spacing, padding and border attributes. These are all handled by CSS in HTML5. I assume there isn't any control over that at this time.

Thanks,
TroyD

Sign in to reply to this post

Ray BorduinWebAssist

Yes, there may be an update to the ckeditor that addresses this in the future, but there is no setting for that in the current version that I know of.

Sign in to reply to this post
Did this help? Tips are appreciated...
loading

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...