Skip to content

Commit e095706

Browse files
committed
dev
1 parent c39437a commit e095706

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

codex-ui/dev/pages/components/Editor.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
class: Header as any,
2929
config: {
3030
placeholder: 'Heading',
31-
inlineToolbar: true,
3231
},
32+
inlineToolbar: true,
3333
},
3434
list: {
3535
class: NestedList,
@@ -40,6 +40,7 @@
4040
placeholder="Write something or press / to select a tool"
4141
first-block-placeholder="Untitled"
4242
autofocus
43+
:inlineToolbar="true"
4344
/>
4445
</template>
4546

codex-ui/src/vue/components/editor/Editor.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ const props = defineProps<{
4848
* Should the editor be focused on load
4949
*/
5050
autofocus?: boolean;
51+
52+
/**
53+
* Common Inline Toolbar settings
54+
* - if true (or not specified), the order from 'tool' property will be used (default)
55+
* - if an array of tool names, this order will be used
56+
*/
57+
inlineToolbar?: boolean;
5158
}>();
5259
5360
const emit = defineEmits<{
@@ -62,6 +69,7 @@ const editorConfig = computed<EditorConfig>(() => {
6269
tools: props.tools,
6370
placeholder: props.placeholder,
6471
autofocus: props.autofocus,
72+
inlineToolbar: props.inlineToolbar,
6573
};
6674
});
6775

0 commit comments

Comments
 (0)