forked from ZwiiCMS-Team/ZwiiCampus
tiny tool bar
This commit is contained in:
parent
628072ada0
commit
62755ddcf5
47
core/vendor/tinymce/init.js
vendored
47
core/vendor/tinymce/init.js
vendored
@ -7,40 +7,39 @@
|
|||||||
/**
|
/**
|
||||||
* Quand tinyMCE est invoqué hors connexion, initialiser privateKey
|
* Quand tinyMCE est invoqué hors connexion, initialiser privateKey
|
||||||
*/
|
*/
|
||||||
if (typeof (privateKey) == 'undefined') {
|
if (typeof (privateKey) == "undefined") {
|
||||||
var privateKey = null;
|
var privateKey = null;
|
||||||
};
|
};
|
||||||
tinymce.init({
|
tinymce.init({
|
||||||
// Classe où appliquer l'éditeur
|
// Classe où appliquer l"éditeur
|
||||||
selector: ".editorWysiwyg",
|
selector: ".editorWysiwyg",
|
||||||
// Aperçu dans le pied de page
|
// Aperçu dans le pied de page
|
||||||
setup: function (ed) {
|
setup: function (ed) {
|
||||||
ed.on('change', function (e) {
|
ed.on("change", function (e) {
|
||||||
if (ed.id === 'themeFooterText') {
|
if (ed.id === "themeFooterText") {
|
||||||
$("#footerText").html(tinyMCE.get('themeFooterText').getContent());
|
$("#footerText").html(tinyMCE.get("themeFooterText").getContent());
|
||||||
}
|
}
|
||||||
if (ed.id === 'themeHeaderText') {
|
if (ed.id === "themeHeaderText") {
|
||||||
$("#featureContent").html(tinyMCE.get('themeHeaderText').getContent());
|
$("#featureContent").html(tinyMCE.get("themeHeaderText").getContent());
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// Langue
|
// Langue
|
||||||
language: getCookie('ZWII_UI') === null ? "fr_FR" : getCookie('ZWII_UI'),
|
language: getCookie("ZWII_UI") === null ? "fr_FR" : getCookie("ZWII_UI"),
|
||||||
// Plugins
|
// Plugins
|
||||||
plugins: "advlist anchor autolink autoresize autosave codemirror contextmenu colorpicker fullscreen hr image imagetools link lists media paste searchreplace tabfocus table template textcolor visualblocks nonbreaking emoticons charmap",
|
plugins: "advlist anchor autolink autoresize autosave codemirror contextmenu colorpicker fullscreen hr image imagetools link lists media paste searchreplace tabfocus table template textcolor visualblocks nonbreaking emoticons charmap",
|
||||||
// Contenu du menu
|
// Contenu du menu
|
||||||
menu: {
|
menu: {
|
||||||
edit: {title: 'Edit', items: 'undo redo | selectall searchreplace | cut copy paste pastetext | style'},
|
edit: {title: "Edit", items: "undo redo | selectall searchreplace | cut copy paste pastetext | style"},
|
||||||
insert: {title: 'Insert', items: 'template | nonbreaking hr charmap anchor | abbr insertdatetime '},
|
insert: {title: "Insert", items: "template | nonbreaking hr charmap anchor | abbr insertdatetime "},
|
||||||
format: {title: 'Format', items: 'underline strikethrough superscript subscript | forecolor backcolor | formats | removeformat'},
|
format: {title: "Format", items: " bold underline strikethrough superscript subscript | | formats | removeformat"},
|
||||||
table: {title: 'Table', items: 'inserttable tableprops deletetable | cell row column'},
|
tools: { title: "Tools", items: ""},
|
||||||
|
table: {title: "Table", items: "inserttable tableprops deletetable | cell row column"},
|
||||||
},
|
},
|
||||||
// Contenu de la barre d'outils
|
// Contenu de la barre d'outils
|
||||||
toolbar: [
|
toolbar: [
|
||||||
"fontselect fontsizeselect formatselect | bold italic strikethrough forecolor backcolor",
|
"undo redo | fontsizeselect | h1 h2 h3 | alignleft aligncenter alignright alignjustify | bold forecolor backcolor| bullist numlist | link image media | outdent indent removeformat | fullscreen",
|
||||||
"link image ImgPen media | alignleft aligncenter alignright alignjustify | " +
|
|
||||||
"numlist bullist | outdent indent removeformat | fullscreen"
|
|
||||||
],
|
],
|
||||||
toolbar_sticky: true,
|
toolbar_sticky: true,
|
||||||
fontsize_formats:
|
fontsize_formats:
|
||||||
@ -50,7 +49,7 @@ tinymce.init({
|
|||||||
// CodeMirror
|
// CodeMirror
|
||||||
codemirror: {
|
codemirror: {
|
||||||
indentOnInit: true, // Whether or not to indent code on init.
|
indentOnInit: true, // Whether or not to indent code on init.
|
||||||
path: 'codemirror', // Path to CodeMirror distribution
|
path: "codemirror", // Path to CodeMirror distribution
|
||||||
saveCursorPosition: false, // Insert caret marker
|
saveCursorPosition: false, // Insert caret marker
|
||||||
config: { // CodeMirror config object
|
config: { // CodeMirror config object
|
||||||
fullscreen: true,
|
fullscreen: true,
|
||||||
@ -60,14 +59,14 @@ tinymce.init({
|
|||||||
mode: "htmlmixed"
|
mode: "htmlmixed"
|
||||||
},
|
},
|
||||||
jsFiles: [
|
jsFiles: [
|
||||||
'mode/php/php.js',
|
"mode/php/php.js",
|
||||||
'mode/css/css.js',
|
"mode/css/css.js",
|
||||||
'mode/htmlmixed/htmlmixed.js',
|
"mode/htmlmixed/htmlmixed.js",
|
||||||
'mode/htmlembedded/htmlembedded.js',
|
"mode/htmlembedded/htmlembedded.js",
|
||||||
'mode/javascript/javascript.js',
|
"mode/javascript/javascript.js",
|
||||||
'mode/xml/xml.js',
|
"mode/xml/xml.js",
|
||||||
'addon/search/searchcursor.js',
|
"addon/search/searchcursor.js",
|
||||||
'addon/search/search.js',
|
"addon/search/search.js",
|
||||||
],
|
],
|
||||||
/*
|
/*
|
||||||
cssFiles: [
|
cssFiles: [
|
||||||
|
Loading…
Reference in New Issue
Block a user