Skip to content

Commit f43ad07

Browse files
authored
Merge pull request #241 from ProcessMaker/bugfix/FOUR-2521
Re-render rich text editor when page chagnes
2 parents c5991aa + 0bc411c commit f43ad07

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/components/FormTextArea.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div v-else>
77
<editor
88
class="editor"
9-
v-if="!readonly"
9+
v-if="!readonly && editorActive"
1010
v-bind="$attrs"
1111
:value="value"
1212
:init="editorSettings"
@@ -86,6 +86,12 @@ export default {
8686
immediate: true,
8787
}
8888
},
89+
activated() {
90+
this.editorActive = true;
91+
},
92+
deactivated() {
93+
this.editorActive = false;
94+
},
8995
methods: {
9096
setHeight() {
9197
if (!this.editorInstance) {
@@ -127,6 +133,7 @@ export default {
127133
},
128134
},
129135
editorInstance: null,
136+
editorActive: true,
130137
}
131138
}
132139
}

0 commit comments

Comments
 (0)