diff --git a/public/css/survey-frontend.css b/public/css/survey-frontend.css index 8dae382..6a2e782 100644 --- a/public/css/survey-frontend.css +++ b/public/css/survey-frontend.css @@ -1358,3 +1358,11 @@ font-weight: 400; font-style: normal; } + +.survey-label--rich-text { + margin-bottom: -0.35rem; +} + +.survey-label--rich-text + .survey-rich-editor { + margin-bottom: 0.4rem; +} diff --git a/public/js/survey-rich-text.js b/public/js/survey-rich-text.js index 7852167..782d09c 100644 --- a/public/js/survey-rich-text.js +++ b/public/js/survey-rich-text.js @@ -35,7 +35,16 @@ editorHost.className = 'survey-rich-editor__host'; wrapper.appendChild(editorHost); - textarea.parentNode.insertBefore(wrapper, textarea); + // Nicht innerhalb eines