I've found some really interesting! The execCommand function applies many useful features. But is it possible to work with OWN wraps? Like:  document.execCommand("styleWithCSS", false, "<span class='own-class'>");...
ExecCommand offers a way to bold text inside iFrame, make it italic, underline it etc.  But it's missing an option to create <cite> or <strong> or <em> (there is formatBlock but only for block elements and not inline ones).  I&#...
I try to write an editor with contenteditable & execCommand Everything works fine on Firefox, but in chrome has an error with 'delete' command.  Please view bellow photo:    This is my code:  var $obj = $('#myBlockDivId'); var sel...
Making the selected text bold:  document.execCommand('bold', null, null);   When the user selects that piece of text again (or a part of it), how can you know that it has been made bold?  Bold is just an example. The commandName could be unde...
Please see http://jsfiddle.net/4aQtk/3/  I tried to change style of li via execcommand("formatBlock",...). It works well on normal paragraph nodes, but makes nodes on list items.  Firefox 27 : OK, style elements(p, h1, h2) wrapped just text i...
So I have a button that's supposed to make a fancy share URL, shorten it using goo.gl, and then copy that to the clipboard. The great news is, I have successfully done all of that, but just not all at once.  The problem stems from the spec:     C...
I'm fooling around with contentEditable and execCommand, and I'm trying to make it so that when a button is pressed,   If there's text selected in the contentEditable, it becomes bolded If there's no text selected in the contentEditab...
I'm using document.execCommand("unlink", false, false); to remove hyperlinks and anchors in my own html editor. It works fine except in one case: it doesn't remove anchors in Firefox. Is this not supported in Firefox or is there anoth...
Problem  Strange static or blinking selection after execution of command  document.execCommand('justifyRight', false, null)   and re-selecting of contentEditable content or some portions of it.    To reproduce   Create contentEditable element...
I using some simple command like:  document.execCommand('bold',false,null)  document.execCommand('italic',false,null)   They are working fine with desktop browsers.   So i just want to know that are they compatible with mobile(Android...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.