Closed juanmaguitar closed 5 months ago
This has been done on enhanced-editable-block-1b8c51
See withCharLimit.js
in the enhanced-editable-block-1b8c51
block. Props to @ndiego for the original code this implementation is based on.
This example was added on https://github.com/WordPress/block-development-examples/commit/3714aa1ce6aeebae31ca9daef2f88091ff4a6e63
I'd like to create an example to take a core
RichText
component and enhance it through a Higher Order Component. Some function likewithCharLimit
that takes a coreRichText
and return and enhanced version of it that limits the maximum number of characters allowed (withCharLimit(RichText)
)