File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 <MainContainer v-if =" $editor" >
3737 <!-- Readonly -->
3838 <div v-if =" readOnly" class =" text-editor--readonly-bar" >
39- <ReadonlyBar />
39+ <ReadonlyBar >
40+ <Status :document =" document"
41+ :dirty =" dirty"
42+ :sessions =" filteredSessions"
43+ :sync-error =" syncError"
44+ :has-connection-issue =" hasConnectionIssue"
45+ :last-saved-string =" lastSavedString" />
46+ </ReadonlyBar >
4047 </div >
4148 <!-- Rich Menu -->
4249 <template v-else >
@@ -262,12 +269,16 @@ export default {
262269 displayed () {
263270 return this .currentSession && this .active
264271 },
265- renderMenus () {
272+ renderRichEditorMenus () {
266273 return this .contentLoaded
267274 && this .isRichEditor
268275 && ! this .syncError
269276 && ! this .readOnly
270277 },
278+ renderMenus () {
279+ return this .contentLoaded
280+ && ! this .syncError
281+ },
271282 imagePath () {
272283 return this .relativePath .split (' /' ).slice (0 , - 1 ).join (' /' )
273284 },
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ export default {
186186 clearInterval (this .$checkInterval )
187187 }
188188
189- if (isWidthAvailable) {
189+ if (isWidthAvailable || ! this . $isRichEditor ) {
190190 this .$nextTick (() => {
191191 this .isReady = true
192192 })
Original file line number Diff line number Diff line change 88 v-bind =" { actionEntry }"
99 :key =" `text-action--${actionEntry.key}`" />
1010 </div >
11+ <div class =" text-menubar__slot" >
12+ <slot />
13+ </div >
1114 </div >
1215</template >
1316
@@ -28,6 +31,9 @@ export default defineComponent({
2831 </script >
2932
3033<style scoped>
34+ .text-readonly-bar {
35+ display : flex ;
36+ }
3137.text-readonly-bar__entries {
3238 display : flex ;
3339 flex-grow : 1 ;
You can’t perform that action at this time.
0 commit comments