I have a basic editor based on execCommand following the sample introduced here. There are three ways to paste text within the execCommand area:   Ctrl+V  Right Click -> Paste Right Click -> Paste As Plain Text   I want to allow pasting only...
This question already has an answer here:...
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...
When implementing a web-based rich-text editor, I read that document.execCommand is useful for performing operations on an HTML document (like making a selection bold). However, I need something a bit better. Specifically, I need to know exactly what...
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...
I want to use execCommand('formatblock') to select a line with the <p> tag or <span> with a specific class or id or any CSS style in my contentEditable <div> (own rich text editor).   document.execCommand('formatblock...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.