Changeset 532

Show
Ignore:
Timestamp:
09/06/08 22:09:44 (3 months ago)
Author:
jf.hovinne
Message:

Added editing direction option. Fixes #89.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/wymeditor/jquery.wymeditor.explorer.js

    r530 r532  
    4242 
    4343    this._doc.title = this._wym._index; 
     44 
     45    //set the text direction 
     46    jQuery('html', this._doc).attr('dir', this._options.direction); 
    4447     
    4548    //init html value 
  • trunk/src/wymeditor/jquery.wymeditor.js

    r531 r532  
    4949    IFRAME_DEFAULT      - The iframe's default base path. 
    5050    JQUERY_PATH         - A string replaced by the computed jQuery path. 
     51    DIRECTION           - A string replaced by the text direction (rtl or ltr). 
    5152    LOGO                - A string replaced by WYMeditor logo. 
    5253    TOOLS               - A string replaced by the toolbar's HTML. 
     
    121122    IFRAME_DEFAULT      : "iframe/default/", 
    122123    JQUERY_PATH         : "{Wym_Jquery_Path}", 
     124    DIRECTION           : "{Wym_Direction}", 
    123125    LOGO                : "{Wym_Logo}", 
    124126    TOOLS               : "{Wym_Tools}", 
     
    327329    lang:       "en", 
    328330 
     331    direction:  "ltr", 
     332 
    329333    boxHtml:   "<div class='wym_box'>" 
    330334              + "<div class='wym_area_top'>"  
     
    498502    dialogHtml:      "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'" 
    499503                      + " 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>" 
    500                       + "<html><head>" 
     504                      + "<html dir='" 
     505                      + WYMeditor.DIRECTION 
     506                      + "'><head>" 
    501507                      + "<link rel='stylesheet' type='text/css' media='screen'" 
    502508                      + " href='" 
     
    11481154    var dialogHtml = this._options.dialogHtml; 
    11491155    dialogHtml = h.replaceAll(dialogHtml, WYMeditor.BASE_PATH, this._options.basePath); 
     1156    dialogHtml = h.replaceAll(dialogHtml, WYMeditor.DIRECTION, this._options.direction); 
    11501157    dialogHtml = h.replaceAll(dialogHtml, WYMeditor.CSS_PATH, this._options.skinPath + WYMeditor.SKINS_DEFAULT_CSS); 
    11511158    dialogHtml = h.replaceAll(dialogHtml, WYMeditor.WYM_PATH, this._options.wymPath); 
  • trunk/src/wymeditor/jquery.wymeditor.mozilla.js

    r530 r532  
    4040 
    4141    this._doc.title = this._wym._index; 
     42 
     43    //set the text direction 
     44    jQuery('html', this._doc).attr('dir', this._options.direction); 
    4245     
    4346    //init html value 
  • trunk/src/wymeditor/jquery.wymeditor.opera.js

    r530 r532  
    3636 
    3737    this._doc.title = this._wym._index; 
     38 
     39    //set the text direction 
     40    jQuery('html', this._doc).attr('dir', this._options.direction); 
    3841     
    3942    //init designMode 
  • trunk/src/wymeditor/jquery.wymeditor.safari.js

    r530 r532  
    3939    this._doc.title = this._wym._index; 
    4040 
     41    //set the text direction 
     42    jQuery('html', this._doc).attr('dir', this._options.direction); 
     43 
    4144    //init designMode 
    4245    this._doc.designMode = "on";