mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-08 01:53:04 +08:00
Fix loading wrong source if memorized framework demo is not given
This commit is contained in:
parent
a55aa5fd17
commit
3c1f04bfe7
@ -232,7 +232,7 @@ export default {
|
|||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
// TODO: load language from url params
|
// TODO: load language from url params
|
||||||
const intitialTab = localStorage.tab ? localStorage.tab : this.sortedTabs[0]?.name
|
const intitialTab = localStorage.tab && this.sources[localStorage.tab] ? localStorage.tab : this.sortedTabs[0]?.name
|
||||||
this.setTab(intitialTab)
|
this.setTab(intitialTab)
|
||||||
|
|
||||||
window.document.addEventListener('editor', this.onEditor, false)
|
window.document.addEventListener('editor', this.onEditor, false)
|
||||||
|
Loading…
Reference in New Issue
Block a user