22 lines
610 B
JavaScript
22 lines
610 B
JavaScript
//activate tinyMCE
|
|
tinymce.init({
|
|
selector: '.tmpTextArea',
|
|
menubar: false,
|
|
skin: 'oxide-dark',
|
|
content_css: 'dark',
|
|
plugins: [
|
|
'autoresize advlist autolink lists link image charmap print preview anchor',
|
|
'searchreplace visualblocks codesample 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
|