Skip to content

Commit

Permalink
let text-decoration: underline flow through the new editing divs
Browse files Browse the repository at this point in the history
See #644
  • Loading branch information
bago committed Jun 10, 2022
1 parent 67dc5bd commit edfe1b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/css/style_mosaico_content.less
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@
cursor: text !important;
}

// Our div wrapper prevent some css property to correctly propagate
.mo-editor-wrapper {
text-decoration: inherit;
}

// Prevent clicking and show loading whily tinymce is being initialized
.wysiwyg-loading {
pointer-events: none;
Expand Down
2 changes: 1 addition & 1 deletion src/js/converter/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ var processBlock = function(element, defs, themeUpdater, blockPusher, templateUr
var wrappingDivAttrs = editorStyle == 'singleline' ?
' style="display: inline-block;"' :
' style="width: 100%; height: 100%"';
var wrappingDiv = $('<div data-ko-wrap="false"'+wrappingDivAttrs+'></div>')[0];
var wrappingDiv = $('<div class="mo-editor-wrapper" data-ko-wrap="false"'+wrappingDivAttrs+'></div>')[0];
domutils.setAttribute(wrappingDiv, 'data-bind', newBinding);
var newContent = domutils.getInnerHtml($('<div></div>').append(wrappingDiv));
domutils.setContent(element, newContent);
Expand Down

0 comments on commit edfe1b8

Please sign in to comment.