Changeset 258 for trunk


Ignore:
Timestamp:
07/15/05 18:41:57 (14 years ago)
Author:
gocher
Message:

Ticket #298 Undo and Redo are completely broken in full page mode

this._doc.setFullHTML(html) is not a function
this.setFullHTML(html) is to set but thats not all!

With a little Testfile it works but with the Example it doesn't works!
HTMLArea.RE_body = /<body[>]*>((.|\n)*?)<\/body>/i;
is good but
HTMLArea.RE_body = /<body[
>]*>((.|\n|\r|\t)*?)<\/body>/i;
is better!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r245 r258  
    161161HTMLArea.RE_doctype = /(<!doctype((.|\n)*?)>)\n?/i; 
    162162HTMLArea.RE_head    = /<head>((.|\n)*?)<\/head>/i; 
    163 HTMLArea.RE_body    = /<body[^>]*>((.|\n)*?)<\/body>/i; 
     163HTMLArea.RE_body    = /<body[^>]*>((.|\n|\r|\t)*?)<\/body>/i; 
    164164HTMLArea.RE_Specials = /([\/\^$*+?.()|{}[\]])/g; 
    165165HTMLArea.RE_email    = /[a-z0-9_]{3,}@[a-z0-9_-]{2,}(\.[a-z0-9_-]{2,})+/i; 
     
    42174217      else 
    42184218      { 
    4219         this._doc.setFullHTML(html); 
     4219        this.setFullHTML(html); 
    42204220      } 
    42214221    } 
Note: See TracChangeset for help on using the changeset viewer.