|
|
@ -194,7 +194,7 @@ |
|
|
|
content = this.editor.getValue(BI.NicEditor.FormatType.ESCAPE), |
|
|
|
content = this.editor.getValue(BI.NicEditor.FormatType.ESCAPE), |
|
|
|
isEqualToPlaceholder = editorService.isRichTextEqual(content, this.options.placeholder); |
|
|
|
isEqualToPlaceholder = editorService.isRichTextEqual(content, this.options.placeholder); |
|
|
|
|
|
|
|
|
|
|
|
var HTML_ONLY_STYLE_TAG = "<font[\\s\\S]*?>|</font>|<span[\\s\\S]*?>|</span>|<b\\s+(.*?)>|<b>|</b>|<u[\\s\\S]*?>|</u>|<i\\s+(.*?)>|<i>|</i>|<strong[\\s\\S]*?>|</strong>|<em[\\s\\S]*?>|</em>|<div[\\s\\S]style(.*?)>|</div>|<p[\\s\\S]style(.*?)>|<p.[\\s\\S]*align(.*?)>|</p>"; |
|
|
|
var HTML_ONLY_STYLE_TAG = "<font[\\s\\S]*?>|</font>|<span[\\s\\S]*?>|</span>|<b\\s+(.*?)>|<b>|</b>|<u[\\s\\S]*?>|</u>|<i\\s+(.*?)>|<i>|</i>|<strong[\\s\\S]*?>|</strong>|<em[\\s\\S]*?>|</em>|<div[\\s\\S]style(.*?)>|</div>"; |
|
|
|
|
|
|
|
|
|
|
|
if (!isEqualToPlaceholder) { |
|
|
|
if (!isEqualToPlaceholder) { |
|
|
|
content = content.replaceAll(HTML_ONLY_STYLE_TAG, ""); |
|
|
|
content = content.replaceAll(HTML_ONLY_STYLE_TAG, ""); |
|
|
|