Skip to content

Commit

Permalink
chore: Update TiptapToHTML allowedClasses in index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
agjs committed May 10, 2024
1 parent e82c98d commit 812a250
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@programmer_network/yail",
"version": "1.0.182",
"version": "1.0.183",
"description": "Programmer Network's official UI library for React",
"author": "Aleksandar Grbic - (https://programmer.network)",
"publishConfig": {
Expand Down
23 changes: 14 additions & 9 deletions src/Components/Inputs/Tiptap/TiptapToHTML/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,23 @@ export default class TiptapToHTML {
allowedClasses: {
"*": [
"yl-text-primary",
"text-xl",
"text-2xl",
"text-3xl",
"text-4xl",
"text-6xl",
"my-4",
"yl-text-xl",
"yl-text-2xl",
"yl-text-3xl",
"yl-text-4xl",
"yl-text-6xl",
"yl-my-4",
"yl-mb-2",
"yl-mt-2",
"wordbreak"
"yl-break-words"
],
a: ["underline,", "yl-text-primary", "yl-cursor-pointer", "font-bold"],
iframe: ["aspect-video", "yl-w-full", "yl-h-full", "yl-py-4"],
a: [
"yl-underline,",
"yl-text-primary",
"yl-cursor-pointer",
"yl-font-bold"
],
iframe: ["yl-aspect-video", "yl-w-full", "yl-h-full", "yl-py-4"],
...Object.values(toolbarItemToClassName).reduce((acc, tag) => {
if (!tag.tagName) {
return acc;
Expand Down

0 comments on commit 812a250

Please sign in to comment.