Enabled default page, changed possible headers in edit component

This commit is contained in:
Torsten Schulz
2024-07-10 17:07:43 +02:00
parent 8b32182102
commit 92ddde1804
2 changed files with 6 additions and 4 deletions

View File

@@ -8,12 +8,13 @@
import ContentComponent from '@/components/ContentComponent.vue'; import ContentComponent from '@/components/ContentComponent.vue';
export default { export default {
name: 'SomePage', name: 'DefaultPage',
components: { components: {
ContentComponent, ContentComponent,
}, },
computed: { computed: {
currentLink() { currentLink() {
console.log(this.$route.path);
return this.$route.path; return this.$route.path;
}, },
}, },

View File

@@ -8,9 +8,10 @@
</select> </select>
</div> </div>
<div class="toolbar"> <div class="toolbar">
<button @click="toggleHeading(1)">H1</button>
<button @click="toggleHeading(2)">H2</button>
<button @click="toggleHeading(3)">H3</button> <button @click="toggleHeading(3)">H3</button>
<button @click="toggleHeading(4)">H4</button>
<button @click="toggleHeading(5)">H5</button>
<button @click="toggleHeading(6)">H6</button>
<button @click="toggleBold()" width="24" height="24"> <button @click="toggleBold()" width="24" height="24">
<BoldIcon width="24" height="24" /> <BoldIcon width="24" height="24" />
</button> </button>
@@ -185,7 +186,7 @@ export default {
BulletList, BulletList,
OrderedList, OrderedList,
Heading.configure({ Heading.configure({
levels: [1, 2, 3], levels: [3, 4, 5, 6],
}), }),
Link.configure({ Link.configure({
openOnClick: false, openOnClick: false,