Slide 31
Slide 31 text
import { registerFormatType }
from '@wordpress/rich-text';
import MyFormat from './my-format';
registerFormatType(
'wcphx/fancy-text',
{
className: 'wcphx-fancy-text',
edit: MyFormat,
tagName: 'span',
title: 'Fancy Text',
},
);