|
|
@ -246,7 +246,7 @@ onBeforeUnmount(() => { |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div v-if="editor" class="notion-editor-container"> |
|
|
|
<div v-if="editor" class="notion-editor-container"> |
|
|
|
<!-- Toolbar based on active tab --> |
|
|
|
<!-- Toolbar based on active tab --> |
|
|
|
<div v-show="edit" class="sticky top-16 right-0 left-0 z-10 bg-white border-b border-gray-200 py-2 flex space-x-2 flex-wrap"> |
|
|
|
<div v-show="edit" class="sticky top-0 pt-16 right-0 left-0 z-10 bg-white border-b border-gray-200 py-2 flex space-x-2 flex-wrap"> |
|
|
|
<Tabs @active="(tab) => activeTab = tab"/> |
|
|
|
<Tabs @active="(tab) => activeTab = tab"/> |
|
|
|
<TextTab v-show="activeTab == 'text'" :editor="editor" /> |
|
|
|
<TextTab v-show="activeTab == 'text'" :editor="editor" /> |
|
|
|
<BlockTab v-show="activeTab == 'blocks'" :editor="editor"/> |
|
|
|
<BlockTab v-show="activeTab == 'blocks'" :editor="editor"/> |
|
|
|