Changeset 510


Ignore:
Timestamp:
05/01/06 07:44:55 (14 years ago)
Author:
gogo
Message:

Apply #583 - new config variable changeJustifyWithDirection, false by
default for backwards compat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r505 r510  
    279279  this.undoTimeout = 500;       // 1/2 sec. 
    280280 
     281  // set this to true if you want to explicitly right-justify when  
     282  // setting the text direction to right-to-left 
     283  this.changeJustifyWithDirection = false; 
     284 
    281285  // if true then HTMLArea will retrieve the full HTML, starting with the 
    282286  // <HTML> tag. 
     
    43584362    case "lefttoright": 
    43594363    case "righttoleft": 
     4364      if (this.config.changeJustifyWithDirection)  
     4365      { 
     4366        this._doc.execCommand((cmdID == "righttoleft") ? "justifyright" : "justifyleft", UI, param); 
     4367      } 
    43604368      var dir = (cmdID == "righttoleft") ? "rtl" : "ltr"; 
    43614369      var el = this.getParentElement(); 
Note: See TracChangeset for help on using the changeset viewer.