execcommand

Exec Task in MSBuild for execution of command on remote machine

青春壹個敷衍的年華 提交于 2019-12-10 12:19:43
问题 I am using following command to install a service via MSBuild file. This works great <Exec Command= 'c:\test\myService.Appservices.exe install' ContinueOnError='false' /> But the above command install the service on local machine. I want to install the service on a remote machine. How can I specify the machine name using this command? 回答1: As per Mike Vine's comment, MSBuild doesn't include tools for remote execution. You could however use something like psexec. e.g. <Exec Command='psexec

execCommand copy async alternative for Firefox

故事扮演 提交于 2019-12-10 10:57:07
问题 document.execCommand('copy') can be used inside the resolve function of a Promise except for Firefox. Every modern browsers like Chrome, Opera, and even Safari allow async copy up to 1 second. I want to improve the user experience and copy data following a calculation in the clipboard. Is there a solution to copy the result of a Promise with Firefox in one click? Here a snippet working with Chrome <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content=

Cross-browser strong/em insertion using execCommand

廉价感情. 提交于 2019-12-06 11:45:38
问题 Using contentEditable feature and the execCommand , one can edit/format the content of certain parts of the page like what is used in all WYSIWYG web-editor. However, there are numerous browsers inconsistencies with the implementation of such feature, which have lead such web-editors to handle them manually. In my case, IE uses strong and em elements for the Bold and Italic commands, which is exactly what I want as I am after the semantic strong and em , and not the visual-style ones of b , i

JavaScript execCommand('copy') not working

点点圈 提交于 2019-12-06 08:04:44
问题 I am unable to use the execCommand('copy'), trying to copy value which is selected in multi-select option. iam getting value in "temp" but the value which is getting in temp not copying or getting in clipboard. { $propArr=array_unique($properties); echo "<div class='table-responsive'>"; echo "<table class='bordered'>"; foreach($propArr as $keyProp =>$val){ echo "<tr>"; echo "<td>$val</td><td>"; echo "<select name='propval' id='propval' onclick='showpropval(this.value);' class='form-control'

html contentEditable document.execCommand change selected opacity

回眸只為那壹抹淺笑 提交于 2019-12-06 00:06:13
问题 any one worked with changing opacity on contentEditable selected. I tried with following: document.execCommand('foreColor', false, 'rgba(0,0,0,0.5)'); // with rgba document.execCommand('foreColor', false, '80000000'); // with alpha hex none worked. but i can easily change colour with: document.execCommand('foreColor', false, '000000'); Can anyone help me on change opacity with document.execCommand ? Update On further searching found out: document.execCommand 'foreColor' add font tag to

Adding a target=“_blank” with execCommand 'createlink'

最后都变了- 提交于 2019-12-05 16:14:20
问题 I am attempting to create a mini WYSIWYG editor for a custom CMS. It has the option to add and remove links. It adds links fine, but would like to have the option to add target="_blank" to the hyperlink. Also, if possible, I would like to be able to add alt="" and title="" . At the moment this is my code: function addLink() { var linkURL = prompt('Enter a URL:', 'http://'); editorWindow.document.execCommand('createlink', false, linkURL); } Been looking around, and can't seem to find a

Save Selected Text Range for Use Later Not working

巧了我就是萌 提交于 2019-12-05 01:32:44
问题 I am using contenteditable and highlighting some text. I want to then backup that text range, and at a later time give that range(text) a different color. If I check in my zss_editor.restorerange method I do get back a valid selection object, so it must be something incorrect in how I am previously saving that range. var zss_editor = {}; // The current selection zss_editor.currentSelection; zss_editor.backuprange = function(){ var selection = window.getSelection(); zss_editor.currentSelection

can't use document.execCommand('copy') with input type file

扶醉桌前 提交于 2019-12-04 05:49:15
问题 can't copy the content of textarea to clipboard using the code below. <script> function copyText() { document.getElementById('in').click(); call(); } function call() { if(getComputedStyle(document.getElementById('butt')).opacity>0.5) {setTimeout(call,100);return;} var ta=window.document.createElement("textarea"); window.document.body.appendChild(ta); ta.value="this text should be in clipboard"; ta.focus(); ta.selectionStart=0; ta.selectionEnd=ta.value.length; ta.addEventListener('keypress',

html contentEditable document.execCommand change selected opacity

十年热恋 提交于 2019-12-04 04:31:05
any one worked with changing opacity on contentEditable selected. I tried with following: document.execCommand('foreColor', false, 'rgba(0,0,0,0.5)'); // with rgba document.execCommand('foreColor', false, '80000000'); // with alpha hex none worked. but i can easily change colour with: document.execCommand('foreColor', false, '000000'); Can anyone help me on change opacity with document.execCommand ? Update On further searching found out: document.execCommand 'foreColor' add font tag to selected with given colour. But sadly the color attribute of is not supported in HTML5. is thats the problem

Adding a target=“_blank” with execCommand 'createlink'

不打扰是莪最后的温柔 提交于 2019-12-04 02:53:19
I am attempting to create a mini WYSIWYG editor for a custom CMS. It has the option to add and remove links. It adds links fine, but would like to have the option to add target="_blank" to the hyperlink. Also, if possible, I would like to be able to add alt="" and title="" . At the moment this is my code: function addLink() { var linkURL = prompt('Enter a URL:', 'http://'); editorWindow.document.execCommand('createlink', false, linkURL); } Been looking around, and can't seem to find a solution. Most of the solutions I've seen say to add: function addLink() { var linkURL = prompt('Enter a URL:'