mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-29 18:22:53 +00:00
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:
committed by
GitHub
parent
71310c21ad
commit
57feedbf25
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user