File tree Expand file tree Collapse file tree
src/vue/components/editor Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 class: Header as any,
2929 config: {
3030 placeholder: 'Heading',
31- inlineToolbar: true,
3231 },
32+ inlineToolbar: true,
3333 },
3434 list: {
3535 class: NestedList,
4040 placeholder =" Write something or press / to select a tool"
4141 first-block-placeholder =" Untitled"
4242 autofocus
43+ :inlineToolbar =" true"
4344 />
4445</template >
4546
Original file line number Diff line number Diff 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
5360const 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
You can’t perform that action at this time.
0 commit comments