2 * NucleusTag plugin for FCKeditor
3 * The license of this file is GPL.
7 var FCKNucleusTagProcessor = new Object() ;
8 FCKNucleusTagProcessor.ProcessDocument = function( document )
10 var aLinks = document.getElementsByTagName( 'mitasnom' ) ;
12 var i = aLinks.length - 1 ;
13 while ( i >= 0 && ( oLink = aLinks[i--] ) ) {
14 if (oLink.title=='nucleustag') {
15 var oImg = FCKDocumentProcessors_CreateFakeImage( 'FCK__NucleusTag', oLink.cloneNode(true) ) ;
16 oImg.setAttribute( '_fcknucleustag', 'true', 0 ) ;
17 oLink.parentNode.insertBefore( oImg, oLink ) ;
18 oLink.parentNode.removeChild( oLink ) ;
23 FCKDocumentProcessors.addItem( FCKNucleusTagProcessor ) ;
25 // Refresh the document
26 FCK.SetHTML( FCK.GetXHTML( FCKConfig.FormatSource ), true ) ;