mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Fix the CodeMirror dev tools button (#35757)
GitOrigin-RevId: af14fd8a637b9b71f1940c71c32bf57371bb2267
This commit is contained in:
+2
-2
@@ -19,7 +19,7 @@ export const codemirrorDevTools = () => {
|
||||
}
|
||||
|
||||
const devToolsButton = ViewPlugin.define(view => {
|
||||
const getContainer = () => document.querySelector('.ol-cm-toolbar-end')
|
||||
const getContainer = () => document.querySelector('.ol-toolbar-layout-right')
|
||||
|
||||
const removeButton = () => {
|
||||
getContainer()?.querySelector('#cm6-dev-tools-button')?.remove()
|
||||
@@ -43,7 +43,7 @@ const devToolsButton = ViewPlugin.define(view => {
|
||||
window.setTimeout(() => {
|
||||
removeButton()
|
||||
addButton()
|
||||
})
|
||||
}, 500)
|
||||
|
||||
return {
|
||||
update(update) {
|
||||
|
||||
Reference in New Issue
Block a user