Ticket #544: xinha.patch

File xinha.patch, 1.9 KB (added by anonymous, 14 years ago)

The patch is against a few days old Xinha SVN version. The revision in the file is bogus (as it lives in our own SVN).

  • popups/insert_image.html

     
    2929      document.getElementById("f_align").value = param["f_align"]; 
    3030      document.getElementById("f_vert").value = param["f_vert"]; 
    3131      document.getElementById("f_horiz").value = param["f_horiz"]; 
     32      document.getElementById("f_id").value = param["f_id"]; 
    3233      window.ipreview.location.replace(param.f_url); 
    3334  } 
    3435  document.getElementById("f_url").focus(); 
     
    4849  } 
    4950  // pass data back to the calling window 
    5051  var fields = ["f_url", "f_alt", "f_align", "f_border", 
    51                 "f_horiz", "f_vert"]; 
     52                "f_horiz", "f_vert", "f_id"]; 
    5253  var param = new Object(); 
    5354  for (var i in fields) { 
    5455    var id = fields[i]; 
     
    131132<div class="fl">Border thickness:</div> 
    132133<input type="text" name="border" id="f_border" size="5" 
    133134title="Leave empty for no border" /> 
     135<div class="space"></div> 
    134136 
     137<div class="fl">ID:</div> 
     138<input type="text" name="id" id="f_id" size="5" 
     139title="The id of the node" /> 
     140 
     141 
    135142<div class="space"></div> 
    136143 
    137144</fieldset> 
  • htmlarea.js

     
    33163316    f_border : image.border, 
    33173317    f_align  : image.align, 
    33183318    f_vert   : image.vspace, 
    3319     f_horiz  : image.hspace 
     3319    f_horiz  : image.hspace, 
     3320    f_id    :  image.id, 
    33203321  }; 
    33213322  this._popupDialog(editor.config.URIs["insert_image"], function(param) { 
    33223323    if (!param) {      // user must have pressed Cancel 
     
    33523353          case "f_align"  : img.align   = value; break; 
    33533354          case "f_vert"   : img.vspace = parseInt(value || "0"); break; 
    33543355          case "f_horiz"  : img.hspace = parseInt(value || "0"); break; 
     3356          case "f_id"     : img.id      = value; break; 
    33553357      } 
    33563358    } 
    33573359  }, outparam);