jquery Programming Glossary: document.execcommand
Persisting the changes of range objects after selection in HTML http://stackoverflow.com/questions/13949059/persisting-the-changes-of-range-objects-after-selection-in-html highlighted using the range object and the executeCommand document.execCommand BackColor false 'yellow' The changes highlighting the text as..
Javascript Highlight Selected Range Button http://stackoverflow.com/questions/1622629/javascript-highlight-selected-range-button since some browsers apply BackColor to the whole block if document.execCommand HiliteColor false colour document.execCommand BackColor false.. block if document.execCommand HiliteColor false colour document.execCommand BackColor false colour document.designMode off function highlight.. var range sel if window.getSelection IE9 and non IE try if document.execCommand BackColor false colour makeEditableAndHighlight colour catch..
HTML5 draggable elements within contenteditable div - stops working after first drop - why? http://stackoverflow.com/questions/16900032/html5-draggable-elements-within-contenteditable-div-stops-working-after-first sel.addRange range '#editor' .get 0 .focus essential document.execCommand 'insertHTML' false content '#editor' .append content sel.removeAllRanges..
How to run Browser command using jQuery / javascript? http://stackoverflow.com/questions/2145538/how-to-run-browser-command-using-jquery-javascript standard way to trigger the Save dialog. In IE you can use document.execCommand 'SaveAs' . EDIT Technically window.print isn't part of any standard..
Jquery IE6 hover problems, keeps loading background image http://stackoverflow.com/questions/2468788/jquery-ie6-hover-problems-keeps-loading-background-image productId 1 postId 1104 script type text javascript try document.execCommand 'BackgroundImageCache' false true catch e script OR try CSS.. true catch e script OR try CSS way html filter expression document.execCommand BackgroundImageCache false true hope this help share improve..
Stop loading of images on a hashchange event via JavaScript or jQuery http://stackoverflow.com/questions/3146200/stop-loading-of-images-on-a-hashchange-event-via-javascript-or-jquery that support it Firefox WebKit use window.stop For IE use document.execCommand Stop false However be careful ... This is basically like pressing.. stopDownloads if window.stop undefined window.stop else if document.execCommand undefined document.execCommand Stop false share improve this..
Change CSS of selected text using Javascript http://stackoverflow.com/questions/3223682/change-css-of-selected-text-using-javascript since some browsers apply BackColor to the whole block if document.execCommand HiliteColor false colour document.execCommand BackColor false.. block if document.execCommand HiliteColor false colour document.execCommand BackColor false colour document.designMode off function highlight.. var range sel if window.getSelection IE9 and non IE try if document.execCommand BackColor false colour makeEditableAndHighlight colour catch..
select all text in contenteditable div when it focus/click http://stackoverflow.com/questions/3805852/select-all-text-in-contenteditable-div-when-it-focus-click border solid 1px #D31444 contenteditable true onclick document.execCommand 'selectAll' false null 12 some text... div share improve this..
Insert link in contenteditable element http://stackoverflow.com/questions/5605401/insert-link-in-contenteditable-element hyperlink contenteditable share improve this question document.execCommand does this for you in all major browsers document.execCommand.. does this for you in all major browsers document.execCommand CreateLink false http stackoverflow.com To preserve the selection..
IE6: Background-Image Load Event http://stackoverflow.com/questions/6285108/ie6-background-image-load-event has loaded... I'm using the BackgroundImageCache hack document.execCommand BackgroundImageCache false true To check when the image is loaded.. downloading it twice Is it possible in IE6 EDIT Using document.execCommand BackgroundImageCache true true seems to work with both parameters..
Insert html when the caret was in a content editable div http://stackoverflow.com/questions/6726579/insert-html-when-the-caret-was-in-a-content-editable-div in dialog '#link_add' .click function e '#rte' .focus document.execCommand 'insertHTML' false 'html content test' close_modal e.preventDefault..
Persisting the changes of range objects after selection in HTML http://stackoverflow.com/questions/13949059/persisting-the-changes-of-range-objects-after-selection-in-html When the HTML page is loaded the text is selected and highlighted using the range object and the executeCommand document.execCommand BackColor false 'yellow' The changes highlighting the text as yellow remain until the page is reloaded. But when the page..
Javascript Highlight Selected Range Button http://stackoverflow.com/questions/1622629/javascript-highlight-selected-range-button sel.removeAllRanges sel.addRange range Use HiliteColor since some browsers apply BackColor to the whole block if document.execCommand HiliteColor false colour document.execCommand BackColor false colour document.designMode off function highlight colour var.. HiliteColor since some browsers apply BackColor to the whole block if document.execCommand HiliteColor false colour document.execCommand BackColor false colour document.designMode off function highlight colour var range sel if window.getSelection IE9 and non.. colour document.designMode off function highlight colour var range sel if window.getSelection IE9 and non IE try if document.execCommand BackColor false colour makeEditableAndHighlight colour catch ex makeEditableAndHighlight colour else if document.selection..
HTML5 draggable elements within contenteditable div - stops working after first drop - why? http://stackoverflow.com/questions/16900032/html5-draggable-elements-within-contenteditable-div-stops-working-after-first 'range' range var sel window.getSelection sel.removeAllRanges sel.addRange range '#editor' .get 0 .focus essential document.execCommand 'insertHTML' false content '#editor' .append content sel.removeAllRanges bindDraggables console.log ' dragged dragged '..
How to run Browser command using jQuery / javascript? http://stackoverflow.com/questions/2145538/how-to-run-browser-command-using-jquery-javascript For printing you can use window.print . There is no standard way to trigger the Save dialog. In IE you can use document.execCommand 'SaveAs' . EDIT Technically window.print isn't part of any standard Source MDC but it's widely available. share improve..
Jquery IE6 hover problems, keeps loading background image http://stackoverflow.com/questions/2468788/jquery-ie6-hover-problems-keeps-loading-background-image cfusion communityengine index.cfm event showdetails productId 1 postId 1104 script type text javascript try document.execCommand 'BackgroundImageCache' false true catch e script OR try CSS way html filter expression document.execCommand BackgroundImageCache..
Stop loading of images on a hashchange event via JavaScript or jQuery http://stackoverflow.com/questions/3146200/stop-loading-of-images-on-a-hashchange-event-via-javascript-or-jquery developer.mozilla.org en DOM window.stop So for browsers that support it Firefox WebKit use window.stop For IE use document.execCommand Stop false However be careful ... This is basically like pressing the stop button in the browser so everything currently..
Change CSS of selected text using Javascript http://stackoverflow.com/questions/3223682/change-css-of-selected-text-using-javascript sel.removeAllRanges sel.addRange range Use HiliteColor since some browsers apply BackColor to the whole block if document.execCommand HiliteColor false colour document.execCommand BackColor false colour document.designMode off function highlight colour var.. HiliteColor since some browsers apply BackColor to the whole block if document.execCommand HiliteColor false colour document.execCommand BackColor false colour document.designMode off function highlight colour var range sel if window.getSelection IE9 and non.. colour document.designMode off function highlight colour var range sel if window.getSelection IE9 and non IE try if document.execCommand BackColor false colour makeEditableAndHighlight colour catch ex makeEditableAndHighlight colour else if document.selection..
select all text in contenteditable div when it focus/click http://stackoverflow.com/questions/3805852/select-all-text-in-contenteditable-div-when-it-focus-click
Insert link in contenteditable element http://stackoverflow.com/questions/5605401/insert-link-in-contenteditable-element of my site http jsfiddle.net qhN9j javascript jquery hyperlink contenteditable share improve this question document.execCommand does this for you in all major browsers document.execCommand CreateLink false http stackoverflow.com To preserve the selection.. hyperlink contenteditable share improve this question document.execCommand does this for you in all major browsers document.execCommand CreateLink false http stackoverflow.com To preserve the selection while your link dialog is displayed you can use the following..
IE6: Background-Image Load Event http://stackoverflow.com/questions/6285108/ie6-background-image-load-event problem I'm having is with IE6 and figuring out when the image has loaded... I'm using the BackgroundImageCache hack document.execCommand BackgroundImageCache false true To check when the image is loaded I use this code ' img ' .attr 'src' 'ThumbSpriteTest.png'.. tag. How can I tell when the background image is loaded without downloading it twice Is it possible in IE6 EDIT Using document.execCommand BackgroundImageCache true true seems to work with both parameters as 'true' . I'm having trouble finding any documentation..
Insert html when the caret was in a content editable div http://stackoverflow.com/questions/6726579/insert-html-when-the-caret-was-in-a-content-editable-div stuck. rte id of my editable content div link_add id of button in dialog '#link_add' .click function e '#rte' .focus document.execCommand 'insertHTML' false 'html content test' close_modal e.preventDefault I also tried the solution from set execcommand just..
|