8 lines
422 B
JavaScript
8 lines
422 B
JavaScript
function insertQuote() {
|
|
var quote_name = document.forms[0].quoteName.value;
|
|
var quote_content = document.forms[0].quoteTextArea.value.replace(/</gi, "<").replace(/\n/gi, "<br />");
|
|
|
|
tinyMCEPopup.restoreSelection();
|
|
tinyMCE.execCommand("mceInsertContent", false, ("<div class=\"quote_title\">" + quote_name + " 写道</div><div class=\"quote_div\">" + quote_content + "</div> "));
|
|
tinyMCEPopup.close();
|
|
} |