2020-01-11 13:17:12 +01:00
|
|
|
//activate tinyMCE
|
|
|
|
tinymce.init({
|
|
|
|
selector: '.tmpTextArea',
|
|
|
|
menubar: false,
|
2020-01-15 16:14:42 +01:00
|
|
|
skin: 'oxide-dark',
|
2020-01-19 11:10:45 +01:00
|
|
|
branding: false,
|
2020-01-15 16:14:42 +01:00
|
|
|
content_css: 'dark',
|
2020-01-11 13:17:12 +01:00
|
|
|
plugins: [
|
2020-01-15 16:14:42 +01:00
|
|
|
'autoresize advlist autolink lists link image charmap print preview anchor',
|
2020-01-19 11:02:52 +01:00
|
|
|
'searchreplace visualblocks codesample fullscreen',
|
2020-01-19 11:10:45 +01:00
|
|
|
'insertdatetime media table paste code'
|
2020-01-11 13:17:12 +01:00
|
|
|
],
|
|
|
|
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
|