Changeset 2850
- Timestamp:
- 01/06/09 17:41:01 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/prototype/_source/plugins/fakeobjects/plugin.js
r2849 r2850 67 67 cssHeightRegex = /height\s*:\s*([0-9]+)\s*(?:[\w%]+)?\s*;?/i; 68 68 69 var copyParser = function()70 {71 this._ = { html : null };72 this.output = [];73 74 CKEDITOR.htmlParser.call( this );75 };76 copyParser.prototype = {77 onTagOpen : function( tagName, attributes, selfClosing )78 {79 this.output.push( makeTagOpenerHtml( tagName, attributes, selfClosing ) );80 },81 82 onTagClose : function( tagName )83 {84 if ( !emptyElements[ tagName] )85 this.output.push( '</' + tagName + '>' );86 },87 88 onText : function( text )89 {90 this.output.push( text );91 },92 93 onComment : function( comment )94 {95 this.output.push( '<!--' + comment + '-->' );96 },97 98 parse : function( html )99 {100 this._.html = html;101 return CKEDITOR.htmlParser.prototype.parse.apply( this, arguments );102 }103 };69 var copyParser = function() 70 { 71 this._ = { html : null }; 72 this.output = []; 73 74 CKEDITOR.htmlParser.call( this ); 75 }; 76 copyParser.prototype = { 77 onTagOpen : function( tagName, attributes, selfClosing ) 78 { 79 this.output.push( makeTagOpenerHtml( tagName, attributes, selfClosing ) ); 80 }, 81 82 onTagClose : function( tagName ) 83 { 84 if ( !emptyElements[ tagName] ) 85 this.output.push( '</' + tagName + '>' ); 86 }, 87 88 onText : function( text ) 89 { 90 this.output.push( text ); 91 }, 92 93 onComment : function( comment ) 94 { 95 this.output.push( '<!--' + comment + '-->' ); 96 }, 97 98 parse : function( html ) 99 { 100 this._.html = html; 101 return CKEDITOR.htmlParser.prototype.parse.apply( this, arguments ); 102 } 103 }; 104 104 105 105 /**
Note: See TracChangeset
for help on using the changeset viewer.
