Skip to content

Commit

Permalink
fix: Fixes extra backslash while breaking paragraphs [CW-1505] (#7457)
Browse files Browse the repository at this point in the history
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
  • Loading branch information
3 people committed Aug 28, 2023
1 parent 71310c2 commit 57feedb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -18,8 +18,7 @@
"prepare": "husky install",
"size": "size-limit"
},
"size-limit": [
{
"size-limit": [{
"path": "public/packs/js/widget-*.js",
"limit": "270 KB"
},
Expand Down

1 comment on commit 57feedb

@Farhank8000
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hf

Please sign in to comment.