Changeset 1055
- Timestamp:
- 10/03/08 23:44:49 (11 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XinhaCore.js
r1053 r1055 5457 5457 * http://dean.edwards.name/weblog/2006/06/again/ 5458 5458 * @public 5459 * @author Dean Edwards/Matthias Miller/ John Resig / Raimund Meyer5459 * @author Dean Edwards/Matthias Miller/ John Resig 5460 5460 * @param {Function} func the function to be executed 5461 5461 * @param {Window} scope the window that is listened to -
trunk/modules/InsertImage/dialog.html
r1044 r1055 2 2 <!--- new stuff ---> 3 3 <form action="" method="get" style="padding-top:10px" id="[inputs]"> 4 <input type="hidden" name="[f_base]" id="[f_base]"/>5 4 <table border="0" width="95%" style="padding: 0px; margin: 0px"> 6 5 <tbody> -
trunk/modules/InsertImage/insert_image.js
r1044 r1055 64 64 65 65 InsertImage.prototype.prepareDialog = function() 66 66 { 67 67 var self = this; 68 68 var editor = this.editor; … … 77 77 var f_url = dialog.getElementById("f_url"); 78 78 var url = f_url.value; 79 var base = dialog.getElementById("f_base").value; 79 80 80 if (!url) { 81 81 alert(dialog._lc("You must enter the URL")); … … 83 83 return false; 84 84 } 85 dialog.getElementById('ipreview').src = Xinha._resolveRelativeUrl(base, url);85 dialog.getElementById('ipreview').src = url; 86 86 return false; 87 87 } 88 88 this.dialog.onresize = function () 89 { 90 91 89 { 92 90 var newHeightForPreview = 93 91 parseInt(this.height,10) … … 102 100 this.getElementById("ipreview").style.width = this.width - 2 + 'px'; // and the width 103 101 104 102 } 105 103 this.dialogReady = true; 106 104 }; -
trunk/modules/InsertImage/pluginMethods.js
r1044 r1055 12 12 } 13 13 } 14 15 var base;16 if ( typeof editor.config.baseHref != 'undefined' && editor.config.baseHref !== null ) {17 base = editor.config.baseHref;18 }19 else {20 var bdir = window.location.toString().split("/");21 bdir.pop();22 base = bdir.join("/");23 }24 14 25 15 if ( image ) 26 16 { 17 function getSpecifiedAttribute(element,attribute) 18 { 19 var a = element.attributes; 20 for (var i=0;i<a.length;i++) 21 { 22 if (a[i].nodeName == attribute && a[i].specified) 23 { 24 return a[i].value; 25 } 26 } 27 return ''; 28 } 27 29 outparam = 28 30 { 29 f_base : base,30 31 f_url : this.stripBaseURL(image.getAttribute('src',2)), // the second parameter makes IE return the value as it is set, as opposed to an "interpolated" (as MSDN calls it) value 31 32 f_alt : image.alt, … … 42 43 outparam = 43 44 { 44 f_base : base,45 45 f_url : '', 46 46 f_alt : '', -
trunk/plugins/Equation/equation.js
r999 r1055 71 71 version : "2.3 (2008-01-26)", 72 72 developer : "Raimund Meyer", 73 developer_url : "http://x inha.raimundmeyer.de",73 developer_url : "http://x-webservice.net", 74 74 c_owner : "", 75 75 sponsor : "", -
trunk/plugins/HtmlEntities/html-entities.js
r999 r1055 26 26 version : "1.0", 27 27 developer : "Raimund Meyer", 28 developer_url : "http:// rheinauf.de",28 developer_url : "http://x-webservice.net", 29 29 c_owner : "Xinha community", 30 30 sponsor : "", -
trunk/plugins/InsertSnippet/insert-snippet.js
r999 r1055 48 48 version : "1.2", 49 49 developer : "Raimund Meyer", 50 developer_url : "http:// rheinauf.de",50 developer_url : "http://x-webservice.net", 51 51 c_owner : "Raimund Meyer", 52 52 sponsor : "", -
trunk/plugins/InsertSnippet2/insert-snippet2.js
r1050 r1055 67 67 version : "1.2", 68 68 developer : "Raimund Meyer", 69 developer_url : "http:// rheinauf.de",69 developer_url : "http://x-webservice.net", 70 70 c_owner : "Raimund Meyer", 71 71 sponsor : "", -
trunk/plugins/Linker/pluginMethods.js
r1044 r1055 26 26 }; 27 27 28 if (atr.href) atr.href = atr.href.trim();29 30 28 if(a && a.tagName.toLowerCase() == 'a') 31 29 { … … 122 120 if(values.href) 123 121 { 124 atr.href = values.href ;122 atr.href = values.href.trim(); 125 123 atr.target = values.target; 126 124 if(values.target == 'popup') -
trunk/plugins/SaveSubmit/save-submit.js
r999 r1055 36 36 version : "1.0", 37 37 developer : "Raimund Meyer", 38 developer_url : "http:// rheinauf.de",38 developer_url : "http://x-webservice.net", 39 39 c_owner : "Raimund Meyer", 40 40 sponsor : "", -
trunk/plugins/SmartReplace/smart-replace.js
r1044 r1055 26 26 version : "1.0", 27 27 developer : "Raimund Meyer", 28 developer_url : "http:// rheinauf.de",28 developer_url : "http://x-webservice.net", 29 29 c_owner : "Raimund Meyer", 30 30 sponsor : "",
Note: See TracChangeset
for help on using the changeset viewer.