Ignore:
Timestamp:
10/27/05 15:10:02 (14 years ago)
Author:
gocher
Message:

Ticket #571
The attached revision fixes two problems with the plugin:

Greater-than and lesser-than characters did not become text, nor did pasted HTML.

The icon was 1 pixel too low to align with the regular paste icon.

Location:
trunk/plugins/PasteText
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/PasteText/paste-text.js

    r376 r405  
    2525PasteText._pluginInfo = { 
    2626        name          : "PasteText", 
    27         version       : "1.0", 
     27        version       : "1.1", 
    2828        developer     : "Michael Harris", 
    2929        developer_url : "http://www.jonesadvisorygroup.com", 
     
    4545        html=" "; 
    4646        editor._popupDialog( "plugin://PasteText/paste_text", function( html ) { 
     47                html = html.replace(/</g, "&lt;"); 
     48                html = html.replace(/>/g, "&gt;"); 
    4749                html = html.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"); 
    4850                html = html.replace(/\n/g,"</p><p>"); 
Note: See TracChangeset for help on using the changeset viewer.