ajoute un plugin de sélection de couleur à l'éditeur, rend la suppression du formatage fonctionelle aussi sur la coloration

This commit is contained in:
Benjamin Dauvergne 2012-07-11 12:34:47 +02:00
parent 5970bdbc5e
commit 1c85dcc794
3 changed files with 8 additions and 2 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "polynum/editor/static/aloha/plugins/external/colorselector"]
path = polynum/editor/static/aloha/plugins/external/colorselector
url = https://github.com/jstrouse/Aloha-Plugin-Colorselector.git

@ -0,0 +1 @@
Subproject commit d45eff96ca1577d83b2c33f86171f7cba5c0537e

View File

@ -19,7 +19,8 @@
editables: {
// no formatting allowed for title
'#top-text': []
}
},
removeFormats: [ 'strong', 'em', 'b', 'i', 's', 'cite', 'q', 'code', 'abbr', 'del', 'sub', 'sup', 'span'],
},
list: {
// all elements with no specific configuration get an UL, just for fun :)
@ -167,7 +168,8 @@
extra/sourceview,
common/characterpicker,
common/commands,
common/contenthandler"></script>
common/contenthandler,
external/colorselector"></script>
<script type="text/javascript">
function editor_activate() {
Aloha.jQuery('#editor-switch').html("Désactiver l'éditeur");