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

View File

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