Opened 8 years ago

Closed 6 years ago

#960 closed Task (fixed)

Change default doctype in the config so it triggers standards mode

Reported by: alfonsoml Owned by:
Priority: Normal Milestone: CKEditor 3.0
Component: General Version:
Keywords: Confirmed Cc:

Description

I think that it would be better if by default the content in the editor is rendered using standards mode by setting in the fckconfig.js

FCKConfig.DocType = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
	"http://www.w3.org/TR/html4/loose.dtd">' ;

and removing the td selectors in fck_editorarea.css

Of course anyone can do these changes in their setup, but I think that setting this ones as defaults might help to uncover some problems related to standards rendering and in the end the behavior of the browsers is much more compatible by using standards mode instead of quirks.

And if anyone uses just the online demo it can get standards rendering instead of quirks.

Change History (7)

comment:2 Changed 7 years ago by arczi

  • Resolution set to duplicate
  • Status changed from new to closed

DUP of #1659

comment:3 Changed 7 years ago by fredck

  • Resolution duplicate deleted
  • Status changed from closed to reopened

This is not a DUP of #1659. It is only related to it.

comment:4 Changed 7 years ago by fredck

  • Keywords Pending added

Shouldn't we use the XHTML 1.0 Transitional doctype instead? That's the way we are doing now in the CKEditor prototype.

comment:5 Changed 7 years ago by alfonsoml

I don't mind if it is HTML or XHTML as long as by default a doctype that triggers standards mode is used and so it gets the maximum testing and we can forget about the differences in quirks mode.

comment:6 Changed 7 years ago by fredck

  • Keywords Confirmed added; Pending removed
  • Milestone set to CKEditor 3.0

comment:7 Changed 6 years ago by fredck

  • Resolution set to fixed
  • Status changed from reopened to closed

That's the way we have it for V3 now.

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy