#2667: DocTypeDeclaration fck_docprops.html
----------------------+-----------------------------------------------------
Reporter: mardiros | Owner:
Type: Bug | Status: new
Priority: Normal | Milestone:
Component: General | Version: FCKeditor 2.6.3
Keywords: |
----------------------+-----------------------------------------------------
When using the document property,[[BR]]
the doctype declaration does not work very well.[[BR]]
It is not loaded when using firefox and
loaded as other on IE7.
The problem is that a value is use for a select,
instead of the selectedIndex.[[BR]]
( And the comparaison must be case-insensitive ???).
Here is a patch
{{{
Index: editor/dialog/fck_docprops.html
===================================================================
--- editor/dialog/fck_docprops.html (revision 2374)
+++ editor/dialog/fck_docprops.html (working copy)
@@ -204,9 +204,18 @@
}
// Document Type.
+
if ( FCK.DocTypeDeclaration && FCK.DocTypeDeclaration.length > 0 )
{
- GetE('selDocType').value = FCK.DocTypeDeclaration ;
+ var selDocType = GetE('selDocType');
+ var dtd = FCK.DocTypeDeclaration.toString().toUpperCase();
+ for ( var i = 0; i < selDocType.options.length; i++ ) {
+ if ( selDocType.options[i].value.toUpperCase() ==
dtd ) {
+ selDocType.selectedIndex = i;
+ break;
+ }
+ }
+
if ( GetE('selDocType').selectedIndex == -1 )
{
}}}
--
Ticket URL: <http://dev.fckeditor.net/ticket/2667>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac