Top "Execcommand" questions

Executes a command on the current document, current selection, or the given range.

How to add class or id or CSS style in execCommand formatBlock 'p' tag?

I want to use execcommand 'formatblock' for select a line by 'p' tag or span with specific class or Id …

javascript jquery html contenteditable execcommand
How to get the image element after insert using execCommand?

Is there any way to get the image element after we insert the image using execCommand? for example e.execCommand(…

javascript html contenteditable execcommand insert-image
Cross-browser Save As .txt

Is there a JavaScript library that allows to save strings as txt files, and works cross-browser? In the past, I …

javascript save-as execcommand data-uri
TinyMCE - custom link button - "add link" is fine, but can't find any documentation for "edit link" and accessing link attributes

I've added a custom button to TinyMCE which brings up a bespoke link-picker. When the user selects some text and …

javascript tinymce execcommand
JavaScript document.execCommand() own tags

I've found some really interesting! The execCommand function applies many useful features. But is it possible to work with OWN …

javascript html execcommand
window.getSelection add class to selection with jquery

I want to select an image and a add a class name to the selection. using window.getSelection. function addClassName() { …

javascript jquery html dom execcommand
html contentEditable document.execCommand change selected opacity

any one worked with changing opacity on contentEditable selected. I tried with following: document.execCommand('foreColor', false, 'rgba(0,0,0,0.5)'); // with …

html opacity contenteditable execcommand
How does execCommand "insertBrOnReturn" work?

I tried the following code on Chrome: document.execCommand("insertBrOnReturn", false, true); http://jsfiddle.net/uVcd5/ Wether I set the …

javascript execcommand
How do I make an execCommand change the font type for my wysiwyg?

I can make the font bold using a button but not when choosing fonts using the select tag. I have …

javascript execcommand
Unable to get document.execCommand('undo') working in the same manner across browsers

I have some code implementing a context menu on a textbox, the context menu is to have an Undo and …

javascript cross-browser contenteditable execcommand