Medium Editor Toolbar States Example, using nodeNames list
Select me to see standard toolbar
Select me to see alternate toolbar
A second editor, using getStateNameForNode
Select me to see standard toolbar
Select me to see alternate toolbar
Another editor, to show state selection based on attributes
Select me to see standard toolbar
Select me to see alternate toolbar. Warning: changing the type of this block
from the toolbar will remove the attribute on this element, thus setting the toolbar to the default.
Custom modification of the default editor behavior is required to retain the toolbar state attributes