diff --git a/config/current.ver b/config/current.ver index 1c651ab..b8d0e57 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.1.76 \ No newline at end of file +1.1.77 \ No newline at end of file diff --git a/public/assets/js/bridge/rte-editor.js b/public/assets/js/bridge/rte-editor.js index cf7f122..dfbde14 100644 --- a/public/assets/js/bridge/rte-editor.js +++ b/public/assets/js/bridge/rte-editor.js @@ -482,6 +482,38 @@ } } catch {} } + if (component && component.view && component.view.el) { + const viewEl = component.view.el; + const hasInline = / { + if (val) styles.push(`${prop}:${val}`); + }; + pushStyle('font-family', cs.fontFamily); + pushStyle('font-size', cs.fontSize); + pushStyle('font-weight', cs.fontWeight); + pushStyle('font-style', cs.fontStyle); + if (cs.textDecorationLine && cs.textDecorationLine !== 'none') { + pushStyle('text-decoration', cs.textDecorationLine); + } + if (cs.textAlign && cs.textAlign !== 'start') { + pushStyle('text-align', cs.textAlign); + } + if (cs.lineHeight && cs.lineHeight !== 'normal') { + pushStyle('line-height', cs.lineHeight); + } + if (cs.color) { + pushStyle('color', cs.color); + } + if (styles.length) { + htmlSource = `${htmlSource}`; + } + } catch {} + } + } const initialHtml = this.sanitizeInlineHtml(htmlSource, modelContent || ''); content.innerHTML = initialHtml; const existingStyle = component && component.get && component.get('style') ? component.get('style') : null;