Verified Commit 22e81129 authored by David Beniamine's avatar David Beniamine
Browse files

Make tinymce resizable

parent 6fce750e
......@@ -75,7 +75,7 @@ function scrollToDisplay(id_bloc) {
function init_tinyMCE(elm, cb_func, argument) {
tinymce.init({
branding: false,
statusbar: false,
//statusbar: false,
selector: elm,
language: 'fr_FR',
width: "100%",
......@@ -150,6 +150,7 @@ function init_tinyMCE(elm, cb_func, argument) {
toolbar1: "pastetext | fontselect fontsizeselect | forecolor backcolor bold italic underline strikethrough | bullist numlist outdent indent | alignleft aligncenter alignright alignjustify",
toolbar2: "subscript superscript epsilon charmap | table image link",
content_css:"/libraries/tinymce/plugins/epsilon/katex.css",
resize: "both",
extended_valid_elements : 'span [*] , annotation[*]'
});
}
......
......@@ -271,7 +271,7 @@ function hideStar(id_ld) {
function init_tinyMCE(elm, callback) {
tinymce.init({
branding: false,
statusbar: false,
//statusbar: false,
selector: elm,
language: 'fr_FR',
paste_data_images: true, //Permet de faire de drag and drop d'image en base64
......@@ -372,6 +372,7 @@ function init_tinyMCE(elm, callback) {
toolbar2: "subscript superscript epsilon charmap | table image link",
content_css:"/libraries/tinymce/plugins/epsilon/katex.css",
//extended_valid_elements : 'span [ class | data-eplw | data-katex | aria-hidden | style | id ] , annotation[*]' //Necessaire epsilonwriter
resize: "both",
extended_valid_elements : 'span [*] , annotation[*]'
});
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment