Issues with styles #6025
Unanswered
Ananthumpillai
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
am creating a plugin.
`domc.addType("Testing", {
isComponent(el) {
if (
(el.getAttribute && el.getAttribute("data-gjs-type") == "Testing") ||
(el.attributes && el.attributes["data-gjs-type"] == "Testing")
) {
return {
type: "Testing",
};
}
},
});
editor.BlockManager.add("Testing", {
label: "Testing",
category: "Custom",
attributes: { class: "fa fa-picture-o" },
content: <div data-gjs-type={"Testing"}>{TestingComp()},
});`
and my component is `
Beta Was this translation helpful? Give feedback.
All reactions