Ticket #7860: 7860.patch
File 7860.patch, 983 bytes (added by , 14 years ago) |
---|
-
_source/plugins/bbcode/plugin.js
158 158 4 : close of tag; 159 159 */ 160 160 161 part = ( parts[ 1 ] || parts[ 3 ] || '' ).toLowerCase(); 162 // Unrecognized tags should be delivered as a simple text (#7860). 163 if ( part && !bbcodeMap[ part ] ) 164 { 165 this.onText( parts[ 0 ] ); 166 continue; 167 } 168 161 169 // Opening tag 162 if ( ( part = parts[ 1 ] ))170 if ( parts[ 1 ] ) 163 171 { 164 part = part.toLowerCase();165 166 172 var tagName = bbcodeMap[ part ], 167 173 attribs = {}, 168 174 styles = {}, … … 201 207 this.onTagOpen( tagName, attribs, CKEDITOR.dtd.$empty[ tagName ] ); 202 208 } 203 209 // Closing tag 204 else if ( ( part = parts[ 3 ] ))210 else if ( parts[ 3 ] ) 205 211 this.onTagClose( bbcodeMap[ part ] ); 206 212 } 207 213