From 3423fabc1596538d12cf0dfdcc7fcd8c384c3a3d Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Fri, 6 Nov 2015 14:24:11 +0100 Subject: [PATCH] Revert "Added wysiwyg support to title field." This reverts commit b00490bbe63ec31f1b18bf00dd2634fdc7155e3e. --- css/questionset.css | 9 ++------- js/questionset.js | 2 +- semantics.json | 10 +++++++--- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/css/questionset.css b/css/questionset.css index 1f25e8d..325f94d 100644 --- a/css/questionset.css +++ b/css/questionset.css @@ -61,21 +61,16 @@ line-height: 2em; font-weight: bold; text-align: center; - margin-top: 0.5em; } -.intro-page .title > div { - display: inline-block; +.intro-page .title > span { padding: 0.125em 0.5em; border-radius: 0.125em; background: rgb(255,255,255); /* Fallback for browsers not supporting rgba */ background: rgba(255,255,255,0.8); /* Gives WCAG contrast ratio of 5.6:1 with the current font color */ } -.intro-page .title > div p { - margin: 0; -} .intro-page .introduction { font-size: 1.25em; - margin: 0.5em 1em 0; + margin: 0 1em; border-radius: 0.25em; background: rgb(255,255,255); /* Fallback for browsers not supporting rgba */ background: rgba(255,255,255,0.8); /* Gives WCAG contrast ratio of 5.6:1 with the current font color */ diff --git a/js/questionset.js b/js/questionset.js index 9796e33..8034da3 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -23,7 +23,7 @@ H5P.QuestionSet = function (options, contentId) { '<% if (introPage.showIntroPage) { %>' + '
' + ' <% if (introPage.title) { %>' + - '
<%= introPage.title %>
' + + '
<%= introPage.title %>
' + ' <% } %>' + ' <% if (introPage.introduction) { %>' + '
<%= introPage.introduction %>
' + diff --git a/semantics.json b/semantics.json index 4552b59..cd20d2d 100644 --- a/semantics.json +++ b/semantics.json @@ -12,11 +12,15 @@ { "name": "title", "type": "text", - "widget": "html", - "tags": ["p", "br", "strong", "em"], "label": "Title", "optional": true, - "description": "This title will be displayed above the introduction text." + "description": "This title will be displayed above the introduction text.", + "tags": [ + "sub", + "sup", + "strong", + "em" + ] }, { "name": "introduction",