Skip to content

Commit 7b24b8a

Browse files
committed
Bring back menubar without formatting on plain text mode
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent a84d082 commit 7b24b8a

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
"@nextcloud/eslint-config": "^8.0.0",
111111
"@nextcloud/stylelint-config": "^2.1.2",
112112
"@nextcloud/webpack-vue-config": "^5.2.1",
113+
"@vitejs/plugin-vue2": "^1.1.2",
113114
"@vue/test-utils": "^1.3.0",
114115
"@vue/vue2-jest": "^28.0.1",
115116
"cypress": "^10.3.0",
@@ -125,7 +126,6 @@
125126
"mitt": "^3.0.0",
126127
"vite": "^3.0.2",
127128
"vite-plugin-commonjs": "^0.5.0",
128-
"@vitejs/plugin-vue2": "^1.1.2",
129129
"vue-demi": "^0.13.5",
130130
"vue-template-compiler": "^2.7.8"
131131
},

src/components/Editor.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ export default {
259259
},
260260
renderMenus() {
261261
return this.contentLoaded
262-
&& this.isRichEditor
263262
&& !this.syncError
264263
&& !this.readOnly
265264
},

src/components/Menu/MenuBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export default {
170170
clearInterval(this.$checkInterval)
171171
}
172172
173-
if (isWidthAvailable) {
173+
if (isWidthAvailable || !this.$isRichEditor) {
174174
this.$nextTick(() => {
175175
this.isReady = true
176176
})

0 commit comments

Comments
 (0)