Código Javascript:
Ver original
function doQuote() { if (editorVisible) { ifm.contentWindow.focus(); if (isIE) { //IE var range = ifm.contentWindow.document.selection.createRange(); if (range.text == '') { range.pasteHTML("<blockquote>Ingrese su texto</blockquote>"); } else myeditor.execCommand("formatblock", false, "<blockquote>" + mytxt + "</blockquote>"); }else if (window.getSelection) { //FF var userSelection = ifm.contentWindow.getSelection().getRangeAt(0); if(userSelection.toString().length==0) myeditor.execCommand('inserthtml', false, "<blockquote>Ingrese su texto</blockquote>"); else myeditor.execCommand("formatblock", false, "<blockquote>" + userSelection.toString() + "</blockquote>"); } else myeditor.execCommand("formatblock", false, "<blockquote>" + mytxt + "</blockquote>"); }else { AddTag('[quote]', '[/quote]');} }
es parte de un editor bbcode y tendria que mostrar un blockquote, pero no funciona :/ alguien sabe que pasa!