Workaround for new Boostrap-vue when editor became zombie
Nessuno ha ancora preso questa issue.
- #496 di @ELHart05 — chiusa senza merge
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- frontend
Direzione di ricerca
Start with the related issues #106 and #113 for the reported repeated-use failure, then review the open pull request #496 before considering any work. The issue describes a Vue modal containing vue-mce and a rerender workaround; done means the editor works on later openings without becoming blank or disabled.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The current behavior is described in detail in #106 and #113: Editor get loaded correctly on first time it is shown, then second and later on it became blank / disabled / zombie / frozzen / etc.
The description of the real internal problem is also in those tickets. I want to show you my workaround, ugly but functional: reloading the component with v-if. Yes, it's not the best, but it works.
Here is it the component used:
<b-modal ref="modal_editor">
<vue-mce v-if="show_editor" :config="config_mce" v-model="content"/>
</b-modal>
The magic code:
forceRerender () {
this.show_editor = false;
this.$nextTick(() => { this.show_editor = true })
},
How to use it:
this.forceRerender()
this.$refs.modal_editor.show()
The rerender function (and other options that didn't work this time) comes from the following reference: https://michaelnthiessen.com/force-re-render/
My environment:
"bootstrap": "^4.4.1",
"bootstrap-vue": "^2.5.0",
"tinymce": "^5.1.1",
"vue": "^2.6.11",
"vue-mce": "^1.5.3",
Regards.
- Lingua principale
- TypeScript
- Stelle
- 2.2k
- Fork
- 217
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di tinymce/tinymce-vue
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
tinymce/tinymce-vue#482 · 7 commenti · 2 reazioni ·
-
expose editor instanceApertaGitHub status: escalated
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
tinymce/tinymce-vue#350 · 5 commenti · 1 reazione ·
-
VueX: integrations/vue.mdApertaGitHub status: escalated
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
tinymce/tinymce-vue#266 · 5 commenti ·
-
bug GitHub status: escalated
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
tinymce/tinymce-vue#230 · 11 commenti · 3 reazioni ·
Tutte le issue di tinymce/tinymce-vue
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
zabuton-app/meguri#875 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
iruzen-dono/workless#117 ·
I maintainer di solito rispondono entro 1 giorno
-
area:api area:web wave wave:trivial
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
vetro-protocol/vetro-monorepo#1321 ·
I maintainer di solito rispondono entro 1 giorno