Skip to content

Commit

Permalink
chore: removed class atrribute
Browse files Browse the repository at this point in the history
  • Loading branch information
aaryan610 committed Oct 17, 2024
1 parent 4356eeb commit 0e91448
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ export const CustomCalloutExtensionConfig = Node.create({

addAttributes() {
const attributes = {
class: {
default: "editor-callout",
},
// Reduce instead of map to accumulate the attributes directly into an object
...Object.values(EAttributeNames).reduce((acc, value) => {
acc[value] = {
Expand Down
1 change: 0 additions & 1 deletion packages/editor/src/core/extensions/callout/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export type TCalloutBlockEmojiAttributes = {
};

export type TCalloutBlockAttributes = {
class: string | undefined;
[EAttributeNames.LOGO_IN_USE]: "emoji" | "icon";
[EAttributeNames.BACKGROUND]: string;
} & TCalloutBlockIconAttributes &
Expand Down
1 change: 0 additions & 1 deletion packages/editor/src/core/extensions/callout/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
} from "./types";

export const DEFAULT_CALLOUT_BLOCK_ATTRIBUTES: TCalloutBlockAttributes = {
class: "",
"data-logo-in-use": "emoji",
"data-icon-color": null,
"data-icon-name": null,
Expand Down

0 comments on commit 0e91448

Please sign in to comment.