Skip to content

Commit

Permalink
IE has a problem with setATtribute('style') this is workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
rondale-sc committed Jan 30, 2019
1 parent 157d551 commit 4b1c6f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/renderers/editor-dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function handleMarkupSectionAttribute(element, attributeKey, attributeValue) {
assert(`cannot use attribute: ${attributeKey}`, _isValidAttribute(attributeKey));

/* This'll work for now, but in the future should be fleshed out */
element.setAttribute('style', `${attributeKey.replace('data-md-','')}: ${attributeValue}`);
element.style.setProperty(attributeKey.replace('data-md-',''), attributeValue);
}

function createElementFromMarkup(doc, markup) {
Expand Down

0 comments on commit 4b1c6f5

Please sign in to comment.