Changeset 645
- Timestamp:
- 2007-08-09 12:14:32 (3 years ago)
- Location:
- FCKeditor/trunk/editor/_source
- Files:
-
- 3 modified
-
classes/fckeditingarea.js (modified) (1 diff)
-
internals/fckregexlib.js (modified) (1 diff)
-
internals/fckundo.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/classes/fckeditingarea.js
r626 r645 75 75 76 76 // Extract the BODY contents from the html. 77 var oMatch = html.match( FCKRegexLib.BodyContents ) ; 78 79 if ( oMatch ) 80 { 77 var oMatchBefore = html.match( FCKRegexLib.BeforeBody ) ; 78 var oMatchAfter = html.match( FCKRegexLib.AfterBody ) ; 79 80 if ( oMatchBefore && oMatchAfter ) 81 { 82 var sBody = html.substr( oMatchBefore[1].length, 83 html.length - oMatchBefore[1].length - oMatchAfter[1].length ) ; // This is the BODY tag contents. 84 81 85 html = 82 oMatch [1] +// This is the HTML until the <body...> tag, inclusive.86 oMatchBefore[1] + // This is the HTML until the <body...> tag, inclusive. 83 87 ' ' + 84 oMatch[3] ; // This is the HTML from the </body> tag, inclusive. 85 86 var sBody = oMatch[2].Trim() ; // This is the BODY tag contents. 88 oMatchAfter[1] ; // This is the HTML from the </body> tag, inclusive. 87 89 88 90 // If nothing in the body, place a BOGUS tag so the cursor will appear. -
FCKeditor/trunk/editor/_source/internals/fckregexlib.js
r302 r645 33 33 NamedCommands : /^(?:Cut|Copy|Paste|Print|SelectAll|RemoveFormat|Unlink|Undo|Redo|Bold|Italic|Underline|StrikeThrough|Subscript|Superscript|JustifyLeft|JustifyCenter|JustifyRight|JustifyFull|Outdent|Indent|InsertOrderedList|InsertUnorderedList|InsertHorizontalRule)$/i , 34 34 35 BodyContents : /([\s\S]*\<body[^\>]*\>)([\s\S]*)(\<\/body\>[\s\S]*)/i , 35 BeforeBody : /(^[\s\S]*\<body[^\>]*\>)/i, 36 AfterBody : /(\<\/body\>[\s\S]*$)/i, 36 37 37 38 // Temporary text used to solve some browser specific limitations. -
FCKeditor/trunk/editor/_source/internals/fckundo.js
r636 r645 96 96 FCKUndo._CheckIsBookmarksEqual = function( bookmark1, bookmark2 ) 97 97 { 98 if ( ! ( bookmark1 && bookmark2 ) ) 99 return false ; 98 100 if ( FCKBrowserInfo.IsIE ) 99 101 {