2
* FCKeditor - The text editor for internet
3
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
5
* Licensed under the terms of the GNU Lesser General Public License:
6
* http://www.opensource.org/licenses/lgpl-license.php
8
* For further information visit:
9
* http://www.fckeditor.net/
11
* "Support Open Source software. What about a donation today?"
13
* File Name: fcktools_ie.js
14
* Utility functions. (IE version).
17
* Frederico Caldeira Knabben (fredck@fckeditor.net)
20
// Appends a CSS file to a document.
21
FCKTools.AppendStyleSheet = function( documentElement, cssFileUrl )
23
return documentElement.createStyleSheet( cssFileUrl ) ;
26
// Removes all attributes and values from the element.
27
FCKTools.ClearElementAttributes = function( element )
29
element.clearAttributes() ;
32
FCKTools.GetAllChildrenIds = function( parentElement )
34
var aIds = new Array() ;
35
for ( var i = 0 ; i < parentElement.all.length ; i++ )
37
var sId = parentElement.all[i].id ;
38
if ( sId && sId.length > 0 )
39
aIds[ aIds.length ] = sId ;
44
FCKTools.RemoveOuterTags = function( e )
46
e.insertAdjacentHTML( 'beforeBegin', e.innerHTML ) ;
47
e.parentNode.removeChild( e ) ;
50
FCKTools.CreateXmlObject = function( object )
57
aObjs = [ 'MSXML2.XmlHttp', 'Microsoft.XmlHttp' ] ;
61
aObjs = [ 'MSXML2.DOMDocument', 'Microsoft.XmlDom' ] ;
65
for ( var i = 0 ; i < 2 ; i++ )
67
try { return new ActiveXObject( aObjs[i] ) ; }
72
if ( FCKLang.NoActiveX )
74
alert( FCKLang.NoActiveX ) ;
75
FCKLang.NoActiveX = null ;
79
FCKTools.DisableSelection = function( element )
81
element.unselectable = 'on' ;
84
while ( e = element.all[ i++ ] )
92
/* Ignore the above tags */
95
e.unselectable = 'on' ;
b'\\ No newline at end of file'