Tinymce toolbar
This commit is contained in:
parent
b2134f1841
commit
f46b7ea0e4
@ -6,15 +6,15 @@
|
|||||||
|
|
||||||
- Module Slider (version 6.1), conformité de la largeur de l'image en pleine largeur lorsque le site est en largeur 100%.
|
- Module Slider (version 6.1), conformité de la largeur de l'image en pleine largeur lorsque le site est en largeur 100%.
|
||||||
- Gestion des extensions, création du dossier "Modules" absent lors de la copie de l'archive d'un module dans le gestionnaire de fichiers.
|
- Gestion des extensions, création du dossier "Modules" absent lors de la copie de l'archive d'un module dans le gestionnaire de fichiers.
|
||||||
- Evite les messages de warning si le store est inaccessible.
|
|
||||||
- Corrige un bug dans la génération du sitemap lorsque le site ne contient pas de page visible.
|
- Corrige un bug dans la génération du sitemap lorsque le site ne contient pas de page visible.
|
||||||
|
- Evite les messages de warning si le store est inaccessible.
|
||||||
|
|
||||||
## Améliorations
|
## Améliorations
|
||||||
|
|
||||||
- Les administrateurs ont la possibilité de forcer un changement de mot de passe sans avoir à connaître le mot de passe en vigueur.
|
- Les administrateurs ont la possibilité de forcer un changement de mot de passe sans avoir à connaître le mot de passe en vigueur.
|
||||||
- Inversion de l'ordre des boutons dans la fenêtre de login sur les petits écrans.
|
|
||||||
- Modification des barres d'outils de l'éditeur de texte TinyMCE.
|
|
||||||
- Gestion des profils des modules, les termes sont plus précis (*Ajouter un article* au lieu d'*Ajouter*).
|
- Gestion des profils des modules, les termes sont plus précis (*Ajouter un article* au lieu d'*Ajouter*).
|
||||||
|
- Inversion de l'ordre des boutons dans la fenêtre de login sur les petits écrans.
|
||||||
|
- Modifications de la barre d'outils et du menu de l'éditeur de texte TinyMCE.
|
||||||
|
|
||||||
## Version 13.0.06
|
## Version 13.0.06
|
||||||
|
|
||||||
|
@ -15,14 +15,13 @@ ZwiiCMS a été créé par un développeur de talent, [Rémi Jean](https://remij
|
|||||||
|
|
||||||
Cette œuvre est mise à disposition sous licence Attribution - Pas d'utilisation Commerciale - Pas de Modification 4.0 International.
|
Cette œuvre est mise à disposition sous licence Attribution - Pas d'utilisation Commerciale - Pas de Modification 4.0 International.
|
||||||
|
|
||||||
Pour voir une copie de cette licence, visitez http://creativecommons.org/licenses/by-nc-nd/4.0/ ou écrivez à Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
|
Pour voir une copie de cette licence, visitez <http://creativecommons.org/licenses/by-nc-nd/4.0/> ou écrivez à Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
|
||||||
|
|
||||||
## Téléchargement de ZwiiCMS
|
## Téléchargement de ZwiiCMS
|
||||||
|
|
||||||
Pour télécharger la dernière version publiée, rendez-vous :
|
Pour télécharger la dernière version publiée, rendez-vous :
|
||||||
- sur [la page des mises à jour](https://forge.chapril.org/ZwiiCMS-Team/ZwiiCMS/releases)
|
* sur [la page des mises à jour](https://forge.chapril.org/ZwiiCMS-Team/ZwiiCMS/releases)
|
||||||
- ou sur [la page de téléchargement du site](https://zwiicms.fr/telechargement)
|
* ou sur [la page de téléchargement du site](https://zwiicms.fr/telechargement)
|
||||||
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@ -30,7 +29,6 @@ Décompressez l'archive de Zwii et téléversez son contenu à la racine de votr
|
|||||||
|
|
||||||
Vous trouverez de plus amples explications, en particulier pour une installation chez Free, dans la rubrique "Téléchargements" du forum.
|
Vous trouverez de plus amples explications, en particulier pour une installation chez Free, dans la rubrique "Téléchargements" du forum.
|
||||||
|
|
||||||
|
|
||||||
## Procédures de mise à jour
|
## Procédures de mise à jour
|
||||||
|
|
||||||
A l'occasion de l'installation d'une verion majeure, il est recommandé de réaliser une copie de sauvegarde.
|
A l'occasion de l'installation d'une verion majeure, il est recommandé de réaliser une copie de sauvegarde.
|
||||||
@ -47,7 +45,6 @@ A l'occasion de l'installation d'une verion majeure, il est recommandé de réal
|
|||||||
* Décompressez la nouvelle version sur votre ordinateur.
|
* Décompressez la nouvelle version sur votre ordinateur.
|
||||||
* Transférez son contenu sur votre serveur en activant le remplacement des fichiers.
|
* Transférez son contenu sur votre serveur en activant le remplacement des fichiers.
|
||||||
|
|
||||||
|
|
||||||
## Arborescence générale
|
## Arborescence générale
|
||||||
|
|
||||||
*Légende : [R] Répertoire - [F] Fichier*
|
*Légende : [R] Répertoire - [F] Fichier*
|
||||||
|
@ -15,14 +15,13 @@ ZwiiCMS was created by a talented developer, [Rémi Jean](https://remijean.fr/).
|
|||||||
|
|
||||||
This work is licensed under the Attribution-Noncommercial-No Derivative Works 4.0 International License.
|
This work is licensed under the Attribution-Noncommercial-No Derivative Works 4.0 International License.
|
||||||
|
|
||||||
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/ or write to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
|
To view a copy of this license, visit <http://creativecommons.org/licenses/by-nc-nd/4.0/> or write to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
|
||||||
|
|
||||||
## Downloading ZwiiCMS
|
## Downloading ZwiiCMS
|
||||||
|
|
||||||
To download the latest released version, go to :
|
To download the latest released version, go to :
|
||||||
- [the Updates page](https://forge.chapril.org/ZwiiCMS-Team/ZwiiCMS/releases)
|
* [the Updates page](https://forge.chapril.org/ZwiiCMS-Team/ZwiiCMS/releases)
|
||||||
- or at [the site download page](https://zwiicms.fr/download)
|
* or at [the site download page](https://zwiicms.fr/download)
|
||||||
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@ -30,7 +29,6 @@ Unzip the Zwii archive and upload its contents to the root of your server or to
|
|||||||
|
|
||||||
You will find more explanations, in particular for an installation at Free, in the "Downloads" section of the forum.
|
You will find more explanations, in particular for an installation at Free, in the "Downloads" section of the forum.
|
||||||
|
|
||||||
|
|
||||||
## Update procedures
|
## Update procedures
|
||||||
|
|
||||||
When installing a major version, it is recommended to make a backup copy.
|
When installing a major version, it is recommended to make a backup copy.
|
||||||
@ -47,7 +45,6 @@ When installing a major version, it is recommended to make a backup copy.
|
|||||||
* Unzip the new version on your computer.
|
* Unzip the new version on your computer.
|
||||||
* Transfer its content to your server by activating the file replacement.
|
* Transfer its content to your server by activating the file replacement.
|
||||||
|
|
||||||
|
|
||||||
## General tree structure
|
## General tree structure
|
||||||
|
|
||||||
*Legend: [D] Directory - [FILE] File
|
*Legend: [D] Directory - [FILE] File
|
||||||
|
143
core/vendor/tinymce/init.js
vendored
143
core/vendor/tinymce/init.js
vendored
@ -31,34 +31,22 @@ tinymce.init({
|
|||||||
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: {
|
file: { title: 'File', items: 'newdocument restoredraft' },
|
||||||
title: "Edit",
|
edit: { title: 'Edit', items: 'undo redo | cut copy paste pastetext | selectall | searchreplace' },
|
||||||
items: "undo redo | selectall searchreplace | cut copy paste pastetext"
|
view: { title: 'View', items: 'code | visualaid visualblocks | fullscreen' },
|
||||||
|
insert: { title: 'Insert', items: 'image link media pageembed template inserttable | charmap emoticons hr | nonbreaking anchor' },
|
||||||
|
//format: { title: 'Format', items: 'bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | removeformat' },
|
||||||
|
tools: { title: 'Tools', items: '' },
|
||||||
|
table: { title: 'Table', items: 'inserttable | cell row column | tableprops deletetable' },
|
||||||
|
help: { title: 'Help', items: 'help' }
|
||||||
},
|
},
|
||||||
insert: {
|
|
||||||
title: "Insert",
|
|
||||||
items: "template | nonbreaking hr charmap anchor "
|
|
||||||
},
|
|
||||||
format: {
|
|
||||||
title: "Format",
|
|
||||||
items: "italic bold underline strikethrough superscript subscript | | formats | removeformat"
|
|
||||||
},
|
|
||||||
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
|
// Contenu de la barre d'outils
|
||||||
toolbar: [
|
toolbar: [
|
||||||
"undo redo | fontsizeselect | bold italic forecolor backcolor | h1 h2 h3 | | bullist numlist | alignleft aligncenter alignright alignjustify | outdent indent removeformat | link image media |fullscreen",
|
"bold italic underline forecolor backcolor | h1 h2 h3 | | bullist numlist | alignleft aligncenter alignright alignjustify | outdent indent removeformat | link image media |fullscreen",
|
||||||
],
|
],
|
||||||
toolbar_sticky: true,
|
toolbar_sticky: true,
|
||||||
fontsize_formats: "8pt 9pt 10pt 11pt 12pt 14pt 18pt 24pt 30pt 36pt 48pt 60pt 72pt 96pt",
|
fontsize_formats:
|
||||||
|
"8pt 9pt 10pt 11pt 12pt 14pt 18pt 24pt 30pt 36pt 48pt 60pt 72pt 96pt",
|
||||||
theme: "silver",
|
theme: "silver",
|
||||||
max_height: 600,
|
max_height: 600,
|
||||||
// CodeMirror
|
// CodeMirror
|
||||||
@ -91,35 +79,22 @@ tinymce.init({
|
|||||||
height: 500 // Default value is 550
|
height: 500 // Default value is 550
|
||||||
},
|
},
|
||||||
// Cibles de la target
|
// Cibles de la target
|
||||||
target_list: [{
|
target_list: [
|
||||||
title: 'None',
|
{ title: 'None', value: '' },
|
||||||
value: ''
|
{ title: 'Nouvel onglet', value: '_blank' }
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Nouvel onglet',
|
|
||||||
value: '_blank'
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
// Target pour lightbox
|
// Target pour lightbox
|
||||||
rel_list: [{
|
rel_list: [
|
||||||
title: 'None',
|
{ title: 'None', value: '' },
|
||||||
value: ''
|
{ title: 'Une popup (Lity)', value: 'data-lity' },
|
||||||
},
|
{ title: 'Une galerie d\'images (SimpleLightbox)', value: 'gallery' }
|
||||||
{
|
|
||||||
title: 'Une popup (Lity)',
|
|
||||||
value: 'data-lity'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Une galerie d\'images (SimpleLightbox)',
|
|
||||||
value: 'gallery'
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
// Titre des image
|
// Titre des image
|
||||||
image_title: true,
|
image_title: true,
|
||||||
// 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: "inserttable cell row column deletetable",
|
contextmenu: "selectall searchreplace | hr | media image link anchor nonbreaking | insertable 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",
|
||||||
@ -156,7 +131,7 @@ tinymce.init({
|
|||||||
// Urls absolues
|
// Urls absolues
|
||||||
relative_urls: true,
|
relative_urls: true,
|
||||||
// Conversion des URLs
|
// Conversion des URLs
|
||||||
convert_urls: true,
|
convert_urls: false,
|
||||||
// Url de base
|
// Url de base
|
||||||
document_base_url: baseUrl,
|
document_base_url: baseUrl,
|
||||||
// Gestionnaire de fichiers
|
// Gestionnaire de fichiers
|
||||||
@ -168,57 +143,28 @@ tinymce.init({
|
|||||||
// Contenu du bouton insérer
|
// Contenu du bouton insérer
|
||||||
insert_button_items: "anchor hr table",
|
insert_button_items: "anchor hr table",
|
||||||
// Contenu du bouton formats
|
// Contenu du bouton formats
|
||||||
style_formats: [{
|
/**
|
||||||
title: "Headers",
|
style_formats: [
|
||||||
items: [{
|
|
||||||
title: "Header 1",
|
|
||||||
format: "h1"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: "Header 2",
|
title: "Headers", items: [
|
||||||
format: "h2"
|
{ title: "Header 1", format: "h1" },
|
||||||
},
|
{ title: "Header 2", format: "h2" },
|
||||||
{
|
{ title: "Header 3", format: "h3" },
|
||||||
title: "Header 3",
|
{ title: "Header 4", format: "h4" }
|
||||||
format: "h3"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Header 4",
|
|
||||||
format: "h4"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Header 5",
|
|
||||||
format: "h5"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Header 6",
|
|
||||||
format: "h6"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Blocks",
|
title: "Blocks", items: [
|
||||||
items: [{
|
{ title: "Paragraph", format: "p" },
|
||||||
title: "Paragraph",
|
{ title: "Blockquote", format: "blockquote" },
|
||||||
format: "p"
|
{ title: "Div", format: "div" },
|
||||||
},
|
{ title: "Pre", format: "pre" }
|
||||||
{
|
]
|
||||||
title: "Citation",
|
|
||||||
format: "blockquote"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Div",
|
|
||||||
format: "div"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Pre",
|
|
||||||
format: "pre"
|
|
||||||
}
|
}
|
||||||
],
|
],*/
|
||||||
}
|
|
||||||
],
|
|
||||||
// Templates
|
// Templates
|
||||||
templates: [{
|
templates: [
|
||||||
|
{
|
||||||
title: "Bloc de texte",
|
title: "Bloc de texte",
|
||||||
url: baseUrl + "core/vendor/tinymce/templates/block.html",
|
url: baseUrl + "core/vendor/tinymce/templates/block.html",
|
||||||
description: "Bloc de texte avec un titre."
|
description: "Bloc de texte avec un titre."
|
||||||
@ -283,9 +229,7 @@ tinymce.init({
|
|||||||
var id_alarm = "#blogArticleContentAlarm"
|
var id_alarm = "#blogArticleContentAlarm"
|
||||||
var contentLength = 0;
|
var contentLength = 0;
|
||||||
ed.on("keydown", function (e) {
|
ed.on("keydown", function (e) {
|
||||||
contentLength = ed.getContent({
|
contentLength = ed.getContent({ format: 'text' }).length;
|
||||||
format: 'text'
|
|
||||||
}).length;
|
|
||||||
if (contentLength > maxlength) {
|
if (contentLength > maxlength) {
|
||||||
$(id_alarm).html("Vous avez atteint le maximum de " + maxlength + " caractères ! ");
|
$(id_alarm).html("Vous avez atteint le maximum de " + maxlength + " caractères ! ");
|
||||||
if (e.keyCode != 8 && e.keyCode != 46) {
|
if (e.keyCode != 8 && e.keyCode != 46) {
|
||||||
@ -293,19 +237,19 @@ tinymce.init({
|
|||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
if (maxlength - contentLength < alarmCaraMin) {
|
if (maxlength - contentLength < alarmCaraMin) {
|
||||||
$(id_alarm).html((maxlength - contentLength) + " caractères restants");
|
$(id_alarm).html((maxlength - contentLength) + " caractères restants");
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
$(id_alarm).html(" ");
|
$(id_alarm).html(" ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Limitation y compris lors d'un copier/coller
|
// Limitation y compris lors d'un copier/coller
|
||||||
ed.on("paste", function (e) {
|
ed.on("paste", function (e) {
|
||||||
contentLeng = ed.getContent({
|
contentLeng = ed.getContent({ format: 'text' }).length - 16;
|
||||||
format: 'text'
|
|
||||||
}).length - 16;
|
|
||||||
var data = e.clipboardData.getData('Text');
|
var data = e.clipboardData.getData('Text');
|
||||||
if (data.length > (maxlength - contentLeng)) {
|
if (data.length > (maxlength - contentLeng)) {
|
||||||
$(id_alarm).html("Vous alliez dépasser le maximum de " + maxlength + " caractères ! ");
|
$(id_alarm).html("Vous alliez dépasser le maximum de " + maxlength + " caractères ! ");
|
||||||
@ -313,7 +257,8 @@ tinymce.init({
|
|||||||
} else {
|
} else {
|
||||||
if (maxlength - contentLeng < alarmCaraMin) {
|
if (maxlength - contentLeng < alarmCaraMin) {
|
||||||
$(id_alarm).html((maxlength - contentLeng - data.length) + " caractères restants");
|
$(id_alarm).html((maxlength - contentLeng - data.length) + " caractères restants");
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
$(id_alarm).html(" ");
|
$(id_alarm).html(" ");
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user