fix: Fixes extra backslash while breaking paragraphs [CW-1505] (#7457)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
Nithin David Thomas
2023-08-28 15:46:10 +05:30
committed by GitHub
parent 71310c21ad
commit 57feedbf25
2 changed files with 8 additions and 9 deletions

View File

@@ -211,18 +211,18 @@ export default {
showVariables(updatedValue) { showVariables(updatedValue) {
this.$emit('toggle-variables-menu', !this.isPrivate && updatedValue); this.$emit('toggle-variables-menu', !this.isPrivate && updatedValue);
}, },
value(newValue = '') { value(newVal = '') {
if (newValue !== this.contentFromEditor) { if (newVal !== this.contentFromEditor) {
this.reloadState(); this.reloadState(newVal);
} }
}, },
editorId() { editorId() {
this.showCannedMenu = false; this.showCannedMenu = false;
this.cannedSearchTerm = ''; this.cannedSearchTerm = '';
this.reloadState(); this.reloadState(this.value);
}, },
isPrivate() { isPrivate() {
this.reloadState(); this.reloadState(this.value);
}, },
updateSelectionWith(newValue, oldValue) { updateSelectionWith(newValue, oldValue) {
@@ -258,9 +258,9 @@ export default {
this.focusEditorInputField(); this.focusEditorInputField();
}, },
methods: { methods: {
reloadState() { reloadState(content = this.value) {
this.state = createState( this.state = createState(
this.value, content,
this.placeholder, this.placeholder,
this.plugins, this.plugins,
this.enabledMenuOptions this.enabledMenuOptions

View File

@@ -18,8 +18,7 @@
"prepare": "husky install", "prepare": "husky install",
"size": "size-limit" "size": "size-limit"
}, },
"size-limit": [ "size-limit": [{
{
"path": "public/packs/js/widget-*.js", "path": "public/packs/js/widget-*.js",
"limit": "270 KB" "limit": "270 KB"
}, },