From: Jérémy Fabre Date: Thu, 3 Nov 2016 09:01:44 +0000 (+0100) Subject: Add a new link style to the wysiwyg editor X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=25392da8dad24b2d63483fed8ef347f11697a181;p=mezzo.git Add a new link style to the wysiwyg editor --- diff --git a/app/organization/core/static/js/tinymce_setup.js b/app/organization/core/static/js/tinymce_setup.js index 3ee0e285..64aaa7d4 100644 --- a/app/organization/core/static/js/tinymce_setup.js +++ b/app/organization/core/static/js/tinymce_setup.js @@ -88,6 +88,13 @@ jQuery(function($) { { title: 'Small paragraph', selector: 'p', classes: 'wys-small-text'} ] + }, + { + + title: 'Links', items: [ + { title: 'Unstyled link', selector: 'a', classes: 'wys-unstyled-link'} + ] + } ], style_formats_merge: true diff --git a/app/static/src/sass/global/_wysiwyg.scss b/app/static/src/sass/global/_wysiwyg.scss index 17d17d5e..b9d42819 100644 --- a/app/static/src/sass/global/_wysiwyg.scss +++ b/app/static/src/sass/global/_wysiwyg.scss @@ -162,3 +162,12 @@ @extend .small-text; } + +.wys-unstyled-link { + + border-bottom: 0 !important; + &:hover { + box-shadow: none !important; + } + +}