Skip to content

Commit edfe1b8

Browse files
committed
let text-decoration: underline flow through the new editing divs
See #644
1 parent 67dc5bd commit edfe1b8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/css/style_mosaico_content.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,11 @@
379379
cursor: text !important;
380380
}
381381

382+
// Our div wrapper prevent some css property to correctly propagate
383+
.mo-editor-wrapper {
384+
text-decoration: inherit;
385+
}
386+
382387
// Prevent clicking and show loading whily tinymce is being initialized
383388
.wysiwyg-loading {
384389
pointer-events: none;

src/js/converter/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ var processBlock = function(element, defs, themeUpdater, blockPusher, templateUr
250250
var wrappingDivAttrs = editorStyle == 'singleline' ?
251251
' style="display: inline-block;"' :
252252
' style="width: 100%; height: 100%"';
253-
var wrappingDiv = $('<div data-ko-wrap="false"'+wrappingDivAttrs+'></div>')[0];
253+
var wrappingDiv = $('<div class="mo-editor-wrapper" data-ko-wrap="false"'+wrappingDivAttrs+'></div>')[0];
254254
domutils.setAttribute(wrappingDiv, 'data-bind', newBinding);
255255
var newContent = domutils.getInnerHtml($('<div></div>').append(wrappingDiv));
256256
domutils.setContent(element, newContent);

0 commit comments

Comments
 (0)