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...
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've added a custom button to TinyMCE which brings up a bespoke link-picker. When the user selects some text and clicks the button the dialog appears and when they've picked the url I'm using execCommand('insertHTML', false, "...
I can make the font bold using a button but not when choosing fonts using the select tag. I have a series of choices such as Arial, Times, Courier etc. with no way of clicking. This is what the code looks like  function fontEditor(){ var x=document.g...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.