Skip to content

Commit 812a250

Browse files
committed
chore: Update TiptapToHTML allowedClasses in index.ts
1 parent e82c98d commit 812a250

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@programmer_network/yail",
3-
"version": "1.0.182",
3+
"version": "1.0.183",
44
"description": "Programmer Network's official UI library for React",
55
"author": "Aleksandar Grbic - (https://programmer.network)",
66
"publishConfig": {

src/Components/Inputs/Tiptap/TiptapToHTML/index.ts

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,23 @@ export default class TiptapToHTML {
105105
allowedClasses: {
106106
"*": [
107107
"yl-text-primary",
108-
"text-xl",
109-
"text-2xl",
110-
"text-3xl",
111-
"text-4xl",
112-
"text-6xl",
113-
"my-4",
108+
"yl-text-xl",
109+
"yl-text-2xl",
110+
"yl-text-3xl",
111+
"yl-text-4xl",
112+
"yl-text-6xl",
113+
"yl-my-4",
114114
"yl-mb-2",
115115
"yl-mt-2",
116-
"wordbreak"
116+
"yl-break-words"
117117
],
118-
a: ["underline,", "yl-text-primary", "yl-cursor-pointer", "font-bold"],
119-
iframe: ["aspect-video", "yl-w-full", "yl-h-full", "yl-py-4"],
118+
a: [
119+
"yl-underline,",
120+
"yl-text-primary",
121+
"yl-cursor-pointer",
122+
"yl-font-bold"
123+
],
124+
iframe: ["yl-aspect-video", "yl-w-full", "yl-h-full", "yl-py-4"],
120125
...Object.values(toolbarItemToClassName).reduce((acc, tag) => {
121126
if (!tag.tagName) {
122127
return acc;

0 commit comments

Comments
 (0)