Skip to content

Commit b51d64a

Browse files
fix(wysiwyg): remove duplicate imports
1 parent 87ad559 commit b51d64a

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

content/plugins/wysiwyg.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ import Highlight from 'https://esm.sh/@tiptap/[email protected]';
7171
import Underline from 'https://esm.sh/@tiptap/[email protected]';
7272
import Link from 'https://esm.sh/@tiptap/[email protected]';
7373
import TextAlign from 'https://esm.sh/@tiptap/[email protected]';
74-
import HorizontalRule from 'https://esm.sh/@tiptap/[email protected]';
7574
import Image from 'https://esm.sh/@tiptap/[email protected]';
7675
import YouTube from 'https://esm.sh/@tiptap/[email protected]';
7776
import TextStyle from 'https://esm.sh/@tiptap/[email protected]';
@@ -121,8 +120,9 @@ window.addEventListener('load', function() {
121120
const editor = new Editor({
122121
element: document.querySelector('#wysiwyg-example'),
123122
extensions: [
124-
// Exclude the default Bold mark
125123
StarterKit.configure({
124+
textStyle: false,
125+
bold: false,
126126
marks: {
127127
bold: false,
128128
},
@@ -143,7 +143,6 @@ window.addEventListener('load', function() {
143143
TextAlign.configure({
144144
types: ['heading', 'paragraph'],
145145
}),
146-
HorizontalRule,
147146
Image,
148147
YouTube,
149148
],
@@ -775,8 +774,9 @@ window.addEventListener('load', function() {
775774
const editor = new Editor({
776775
element: document.querySelector('#wysiwyg-text-example'),
777776
extensions: [
778-
// Exclude the default Bold mark
779777
StarterKit.configure({
778+
textStyle: false,
779+
bold: false,
780780
marks: {
781781
bold: false,
782782
},
@@ -1122,7 +1122,6 @@ import Highlight from 'https://esm.sh/@tiptap/[email protected]';
11221122
import Underline from 'https://esm.sh/@tiptap/[email protected]';
11231123
import Link from 'https://esm.sh/@tiptap/[email protected]';
11241124
import TextAlign from 'https://esm.sh/@tiptap/[email protected]';
1125-
import HorizontalRule from 'https://esm.sh/@tiptap/[email protected]';
11261125
import Image from 'https://esm.sh/@tiptap/[email protected]';
11271126
import YouTube from 'https://esm.sh/@tiptap/[email protected]';
11281127

@@ -1144,7 +1143,6 @@ window.addEventListener('load', function() {
11441143
TextAlign.configure({
11451144
types: ['heading', 'paragraph'],
11461145
}),
1147-
HorizontalRule,
11481146
Image,
11491147
YouTube
11501148
],
@@ -1233,8 +1231,6 @@ Use this example to create typography elements like bullet lists, ordered lists,
12331231
{{< example id="default-wysiwyg-typography-example" class="flex justify-center dark:bg-gray-900" github="plugins/wysiwyg.md" show_dark=true wysiwyg=true script_module=true disable_init_js=true javascript=`
12341232
import { Editor } from 'https://esm.sh/@tiptap/[email protected]';
12351233
import StarterKit from 'https://esm.sh/@tiptap/[email protected]';
1236-
import HorizontalRule from 'https://esm.sh/@tiptap/[email protected]';
1237-
import CodeBlock from 'https://esm.sh/@tiptap/[email protected]';
12381234

12391235
window.addEventListener('load', function() {
12401236
if (document.getElementById("wysiwyg-typography-example")) {
@@ -1243,9 +1239,7 @@ window.addEventListener('load', function() {
12431239
const editor = new Editor({
12441240
element: document.querySelector('#wysiwyg-typography-example'),
12451241
extensions: [
1246-
StarterKit,
1247-
HorizontalRule,
1248-
CodeBlock
1242+
StarterKit
12491243
],
12501244
content: '<p>Flowbite is an <strong>open-source library of UI components</strong> based on the utility-first Tailwind CSS framework featuring dark mode support, a Figma design system, and more.</p><p>It includes all of the commonly used components that a website requires, such as buttons, dropdowns, navigation bars, modals, datepickers, advanced charts and the list goes on.</p><ul><li>Over 600+ open-source UI components</li><li>Supports dark mode and RTL</li><li>Available in React, Vue, Svelte frameworks</li></ul><p>Here is an example of a button component:</p><pre><code>&#x3C;button type=&#x22;button&#x22; class=&#x22;text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 dark:bg-blue-600 dark:hover:bg-blue-700 focus:outline-none dark:focus:ring-blue-800&#x22;&#x3E;Default&#x3C;/button&#x3E;</code></pre><p>Learn more about all components from the <a href="https://flowbite.com/docs/getting-started/introduction/">Flowbite Docs</a>.</p>',
12511245
editorProps: {
@@ -1783,7 +1777,6 @@ import Table from 'https://esm.sh/@tiptap/[email protected]';
17831777
import TableCell from 'https://esm.sh/@tiptap/[email protected]';
17841778
import TableHeader from 'https://esm.sh/@tiptap/[email protected]';
17851779
import TableRow from 'https://esm.sh/@tiptap/[email protected]';
1786-
import Gapcursor from 'https://esm.sh/@tiptap/[email protected]';
17871780

17881781
const TipTapExtensionTableCell = TableCell.extend({
17891782
addAttributes() {
@@ -1816,7 +1809,6 @@ window.addEventListener('load', function() {
18161809
element: document.querySelector('#wysiwyg-tables-example'),
18171810
extensions: [
18181811
StarterKit,
1819-
Gapcursor,
18201812
Table.configure({
18211813
resizable: true,
18221814
}),

0 commit comments

Comments
 (0)