From 11cc693fbaed7ab1fd4b1864e0d9a212b748579a Mon Sep 17 00:00:00 2001 From: Benjamin VIELLARD Date: Thu, 13 Apr 2023 00:01:48 +0200 Subject: [PATCH] style: heading level indicator --- src/icons/h1.vue | 7 +++++++ src/icons/h2.vue | 7 +++++++ src/icons/h3.vue | 7 +++++++ src/icons/h4.vue | 7 +++++++ src/icons/h5.vue | 7 +++++++ src/icons/h6.vue | 7 +++++++ src/tiptap-editor.vue | 14 +++++++++++++- 7 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 src/icons/h1.vue create mode 100644 src/icons/h2.vue create mode 100644 src/icons/h3.vue create mode 100644 src/icons/h4.vue create mode 100644 src/icons/h5.vue create mode 100644 src/icons/h6.vue diff --git a/src/icons/h1.vue b/src/icons/h1.vue new file mode 100644 index 0000000..6604525 --- /dev/null +++ b/src/icons/h1.vue @@ -0,0 +1,7 @@ + diff --git a/src/icons/h2.vue b/src/icons/h2.vue new file mode 100644 index 0000000..45d5429 --- /dev/null +++ b/src/icons/h2.vue @@ -0,0 +1,7 @@ + diff --git a/src/icons/h3.vue b/src/icons/h3.vue new file mode 100644 index 0000000..313a424 --- /dev/null +++ b/src/icons/h3.vue @@ -0,0 +1,7 @@ + diff --git a/src/icons/h4.vue b/src/icons/h4.vue new file mode 100644 index 0000000..74dbdc6 --- /dev/null +++ b/src/icons/h4.vue @@ -0,0 +1,7 @@ + diff --git a/src/icons/h5.vue b/src/icons/h5.vue new file mode 100644 index 0000000..9db1446 --- /dev/null +++ b/src/icons/h5.vue @@ -0,0 +1,7 @@ + diff --git a/src/icons/h6.vue b/src/icons/h6.vue new file mode 100644 index 0000000..be5dd94 --- /dev/null +++ b/src/icons/h6.vue @@ -0,0 +1,7 @@ + diff --git a/src/tiptap-editor.vue b/src/tiptap-editor.vue index 3d3d016..4e6fa76 100644 --- a/src/tiptap-editor.vue +++ b/src/tiptap-editor.vue @@ -140,7 +140,13 @@ :active="editor.isActive('heading')" @click="toggle" > - + + + + + + + @@ -457,6 +463,12 @@ import IconItalic from "./icons/italic.vue"; import IconStrikethrough from "./icons/strikethrough.vue"; import IconUnderline from "./icons/underline.vue"; import IconHeading from "./icons/heading.vue"; +import IconH1 from "./icons/h1.vue"; +import IconH2 from "./icons/h2.vue"; +import IconH3 from "./icons/h3.vue"; +import IconH4 from "./icons/h4.vue"; +import IconH5 from "./icons/h5.vue"; +import IconH6 from "./icons/h6.vue"; import IconSeparator from "./icons/separator.vue"; import IconArrowGoForwardLine from "./icons/arrow-go-forward-line.vue"; import IconCodeLine from "./icons/code-line.vue";