addGlobalAttributes() {
return [
{
types: ["image"],
attributes: {
style: {
default: null,
parseHTML: (element) => element.getAttribute("style"),
renderHTML: (attributes) => {
if (!attributes.style) {
return null;
}
return {
style: attributes.style,
};
},
keepOnSplit: false,
}, ....
addGlobalAttributes() {
return [
{
types: ["image"],
attributes: {
style: {
default: null,
parseHTML: (element) => element.getAttribute("style"),
renderHTML: (attributes) => {
if (!attributes.style) {
return null;
}
return {
style: attributes.style,
};
},
keepOnSplit: false,
}, ....