From 25392da8dad24b2d63483fed8ef347f11697a181 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Thu, 3 Nov 2016 10:01:44 +0100 Subject: [PATCH] Add a new link style to the wysiwyg editor --- app/organization/core/static/js/tinymce_setup.js | 7 +++++++ app/static/src/sass/global/_wysiwyg.scss | 9 +++++++++ 2 files changed, 16 insertions(+) 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; + } + +} -- 2.39.5