forked from ZwiiCMS-Team/ZwiiCMS
[9.2.25] tinymce menu barre outils
This commit is contained in:
parent
e8c630c21a
commit
cedf04e68c
18
core/vendor/tinymce/init.js
vendored
18
core/vendor/tinymce/init.js
vendored
@ -18,9 +18,9 @@ tinymce.init({
|
|||||||
// Langue
|
// Langue
|
||||||
language: "fr_FR",
|
language: "fr_FR",
|
||||||
// Plugins
|
// Plugins
|
||||||
plugins: "advlist anchor autolink autoresize autosave codemirror colorpicker contextmenu fullscreen hr image imagetools link lists media paste searchreplace stickytoolbar tabfocus table template textcolor visualblocks",
|
plugins: "advlist anchor autolink autoresize autosave codemirror colorpicker contextmenu fullscreen hr image imagetools link lists media paste searchreplace stickytoolbar tabfocus table template textcolor codesample",
|
||||||
// Contenu de la barre d'outils
|
// Contenu de la barre d'outils
|
||||||
toolbar: "restoredraft | undo redo | styleselect | bold italic underline strikethrough forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist | image media link anchor inserttable hr template code visualblocks fullscreen",
|
toolbar: "restoredraft | undo redo | bold italic underline forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist | template | image media link | fullscreen",
|
||||||
// CodeMirror
|
// CodeMirror
|
||||||
codemirror: {
|
codemirror: {
|
||||||
indentOnInit: true, // Whether or not to indent code on init.
|
indentOnInit: true, // Whether or not to indent code on init.
|
||||||
@ -34,14 +34,6 @@ tinymce.init({
|
|||||||
lineNumbers: true,
|
lineNumbers: true,
|
||||||
mode: "htmlmixed",
|
mode: "htmlmixed",
|
||||||
},
|
},
|
||||||
extraKeys: {
|
|
||||||
"F11": function(cm) {
|
|
||||||
cm.setOption("fullScreen", !cm.getOption("fullScreen"));
|
|
||||||
},
|
|
||||||
"Esc": function(cm) {
|
|
||||||
if (cm.getOption("fullScreen")) cm.setOption("fullScreen", false);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
jsFiles: [
|
jsFiles: [
|
||||||
'mode/php/php.js',
|
'mode/php/php.js',
|
||||||
'mode/css/css.js',
|
'mode/css/css.js',
|
||||||
@ -74,7 +66,7 @@ tinymce.init({
|
|||||||
// Pages internes
|
// Pages internes
|
||||||
link_list: baseUrl + "core/vendor/tinymce/links.php",
|
link_list: baseUrl + "core/vendor/tinymce/links.php",
|
||||||
// Contenu du menu contextuel
|
// Contenu du menu contextuel
|
||||||
contextmenu: "cut copy paste pastetext | selectall searchreplace | link image inserttable | cell row column deletetable",
|
contextmenu: "selectall searchreplace | hr | media image link anchor | inserttable cell row column deletetable",
|
||||||
// Fichiers CSS à intégrer à l'éditeur
|
// Fichiers CSS à intégrer à l'éditeur
|
||||||
content_css: [
|
content_css: [
|
||||||
baseUrl + "core/layout/common.css",
|
baseUrl + "core/layout/common.css",
|
||||||
@ -85,7 +77,7 @@ tinymce.init({
|
|||||||
// Classe à ajouter à la balise body dans l'iframe
|
// Classe à ajouter à la balise body dans l'iframe
|
||||||
body_class: "editorWysiwyg",
|
body_class: "editorWysiwyg",
|
||||||
// Cache les menus
|
// Cache les menus
|
||||||
menubar: false,
|
menubar: true,
|
||||||
// URL menu contextuel
|
// URL menu contextuel
|
||||||
link_context_toolbar: true,
|
link_context_toolbar: true,
|
||||||
// Cache la barre de statut
|
// Cache la barre de statut
|
||||||
@ -118,7 +110,7 @@ tinymce.init({
|
|||||||
// toolbar: [ 'undo', 'bold', 'italic', 'styleselect' ]
|
// toolbar: [ 'undo', 'bold', 'italic', 'styleselect' ]
|
||||||
//},
|
//},
|
||||||
// Contenu du bouton insérer
|
// Contenu du bouton insérer
|
||||||
insert_button_items: "anchor hr ",
|
insert_button_items: "anchor hr table",
|
||||||
// Contenu du bouton formats
|
// Contenu du bouton formats
|
||||||
style_formats: [
|
style_formats: [
|
||||||
{title: "Headers", items: [
|
{title: "Headers", items: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user