@setoelkahfi / svara / commits / c7c77d2

chore: added functions for getting methods in editor component

mellbacon committed Jul 14, 2023 at 14:54 UTC c7c77d25c1c51928171ee5ca01a34a4026db0908
1 file changed +6
src/lib/EditorTabList.svelte
+6
@@ -58,6 +58,12 @@
58 async function closeAllTabs() {
59 await editorTab.closeAllTabs();
60 }
61 + export function getActiveTab() {
62 + return editorTab.activeTab;
63 + }
64 + export function getCurrentEditor() {
65 + return editorTab.activeTab.content;
66 + }
67
68 export let hidden = editorTab.hidden;
69 export let isfile = editorTab.isfile;