194 |
|
|
195 |
function edInsertTag(myField, i) { |
function edInsertTag(myField, i) { |
196 |
|
|
197 |
|
var pos = myField.scrollTop; |
198 |
|
Logger.debug('edInsertTag "'+i+'", scrollTop='+pos); |
199 |
|
|
200 |
//IE support |
//IE support |
201 |
if (document.selection) { |
if (document.selection) { |
202 |
myField.focus(); |
myField.focus(); |
263 |
} |
} |
264 |
myField.focus(); |
myField.focus(); |
265 |
} |
} |
266 |
|
|
267 |
|
if (pos && myField.scrollTop != pos) myField.scrollTop = pos; |
268 |
} |
} |
269 |
|
|
270 |
function edInsertContent(myField, myValue) { |
function edInsertContent(myField, myValue) { |
271 |
|
|
272 |
|
var pos = myField.scrollTop; |
273 |
|
|
274 |
|
Logger.debug('edInsertContent "'+myValue+'", scrollTop='+pos); |
275 |
//IE support |
//IE support |
276 |
if (document.selection) { |
if (document.selection) { |
277 |
myField.focus(); |
myField.focus(); |
293 |
myField.value += myValue; |
myField.value += myValue; |
294 |
myField.focus(); |
myField.focus(); |
295 |
} |
} |
296 |
|
|
297 |
|
if (pos && myField.scrollTop != pos) myField.scrollTop = pos; |
298 |
} |
} |
299 |
|
|
300 |
function edInsertLink(myField, i, defaultValue) { |
function edInsertLink(myField, i, defaultValue) { |