mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-29 10:12:34 +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) {
|
||||
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
|
||||
|
||||
@@ -18,8 +18,7 @@
|
||||
"prepare": "husky install",
|
||||
"size": "size-limit"
|
||||
},
|
||||
"size-limit": [
|
||||
{
|
||||
"size-limit": [{
|
||||
"path": "public/packs/js/widget-*.js",
|
||||
"limit": "270 KB"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user