Skip to content

Commit df061f3

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

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

css/style.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,8 @@ li.ProseMirror-selectednode:after {
7777
[data-handler="text"] {
7878
background-color: var(--color-main-background);
7979
border-top: 3px solid var(--color-primary-element);
80-
font-weight: bold;
80+
81+
.modal-title {
82+
font-weight: bold;
83+
}
8184
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
"@nextcloud/eslint-config": "^8.0.0",
110110
"@nextcloud/stylelint-config": "^2.1.2",
111111
"@nextcloud/webpack-vue-config": "^5.2.1",
112+
"@vitejs/plugin-vue2": "^1.1.2",
112113
"@vue/test-utils": "^1.3.0",
113114
"@vue/vue2-jest": "^28.0.1",
114115
"cypress": "^10.3.0",
@@ -124,7 +125,6 @@
124125
"mitt": "^3.0.0",
125126
"vite": "^3.0.2",
126127
"vite-plugin-commonjs": "^0.5.0",
127-
"@vitejs/plugin-vue2": "^1.1.2",
128128
"vue-demi": "^0.13.5",
129129
"vue-template-compiler": "^2.7.8"
130130
},

src/components/Editor.vue

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

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)