Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -449,33 +449,39 @@
</style>


<!-- Non-scoped styles for typography that apply to editor content -->
<!-- Non-scoped styles for typography that apply to editor content, and to the format
menu's options, which preview it but render outside the editor -->
<style>

.editor-container h1 {
.editor-container h1,
.tiptap-format-option h1 {
margin: 24px 0 16px;
font-size: 32px;
font-weight: 600;
}

.editor-container h2 {
.editor-container h2,
.tiptap-format-option h2 {
margin: 8px 0;
font-size: 24px;
font-weight: 600;
}

.editor-container h3 {
.editor-container h3,
.tiptap-format-option h3 {
margin: 8px 0;
font-size: 18px;
font-weight: 600;
}

.editor-container p {
.editor-container p,
.tiptap-format-option p {
margin: 8px 0;
font-size: 16px;
}

.editor-container small {
.editor-container small,
.tiptap-format-option small {
display: block;
margin: 4px 0;
font-size: 12px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@
import { ref, computed, inject } from 'vue';
import { useToolbarActions } from '../composables/useToolbarActions';
import { getTipTapEditorStrings } from '../TipTapEditorStrings';
import { useDropdowns } from '../composables/useDropdowns';
import { useRovingTabIndex } from '../composables/useRovingTabIndex';
import ToolbarButton from './toolbar/ToolbarButton.vue';
import FormatDropdown from './toolbar/FormatDropdown.vue';
Expand Down Expand Up @@ -198,10 +197,9 @@
insertTools,
minimizeAction,
scriptActions,
pasteActions,
} = useToolbarActions(emit);

const { pasteOptions } = useDropdowns();

const {
copy$,
textFormattingToolbar$,
Expand Down Expand Up @@ -259,7 +257,7 @@
{
name: 'pasteDropdown',
component: PasteDropdown,
dropdownActions: pasteOptions.value,
dropdownActions: pasteActions.value,
},
],
},
Expand Down
Loading
Loading