20 lines
544 B
JavaScript
20 lines
544 B
JavaScript
//activate tinyMCE
|
|
tinymce.init({
|
|
selector: '.tmpTextArea',
|
|
menubar: false,
|
|
plugins: [
|
|
'advlist autolink lists link image charmap print preview anchor',
|
|
'searchreplace visualblocks code fullscreen',
|
|
'insertdatetime media table contextmenu paste code'
|
|
],
|
|
readonly: 1,
|
|
toolbar: false,
|
|
height: 500,
|
|
width: 700,
|
|
});
|
|
//get what is inside the textarea editor
|
|
var content = $('iframe').contents().find('#tinymce').contents();
|
|
//append it in a div
|
|
$("#toAppend").append(content);
|
|
//disable edit
|