11import { Node , mergeAttributes , type CommandProps } from "@tiptap/core" ;
2- import type { NodeOptions , ObjectAttributes } from "../index" ;
2+ import type { NodeOptions , AtlasObjectAttributes } from "../index" ;
33
4- export const ObjectNode = Node . create < NodeOptions > ( {
5- name : "object " ,
4+ export const AtlasObjectNode = Node . create < NodeOptions > ( {
5+ name : "atlas_object " ,
66
77 inline : true ,
88 group : "inline" ,
@@ -14,7 +14,7 @@ export const ObjectNode = Node.create<NodeOptions>({
1414 } ;
1515 } ,
1616
17- addAttributes ( ) : ObjectAttributes {
17+ addAttributes ( ) : AtlasObjectAttributes {
1818 return {
1919 atlas : "" ,
2020 sprite : "" ,
@@ -24,7 +24,7 @@ export const ObjectNode = Node.create<NodeOptions>({
2424 parseHTML ( ) {
2525 return [
2626 {
27- tag : "span[data-object-node]" ,
27+ tag : "span[data-atlas- object-node]" ,
2828 } ,
2929 ] ;
3030 } ,
@@ -35,7 +35,7 @@ export const ObjectNode = Node.create<NodeOptions>({
3535 return [
3636 "span" ,
3737 mergeAttributes ( this . options . HTMLAttributes , HTMLAttributes , {
38- "data-object-node" : "true" ,
38+ "data-atlas- object-node" : "true" ,
3939 contenteditable : "false" ,
4040 style : `
4141 background-color: #18181b;
@@ -53,7 +53,7 @@ export const ObjectNode = Node.create<NodeOptions>({
5353
5454 addCommands ( ) {
5555 return {
56- insertObject :
56+ insertAtlasObject :
5757 ( attrs ) =>
5858 ( { commands } : CommandProps ) => {
5959 return commands . insertContent ( {
0 commit comments