Custom headings on WYSIWYGs per flexible content module in ACF


We have a master flexible content field. In that field, are all of the components we offer the clients to build with. We need to target ONE of those flexible content field options, and ensure the WYSIWYG editor on that one component, only lets you select H5 and H6 (Not 1, 2, 3, and 4, as it’s 4 levels deep already.). Not sure if it’s relevant, but some of the modules in the FCM are clones of other field groups, where the WYSIWYG lives.

We are not looking for the global setting that changes all WYSIWYGs as it’s only the one component we want to change. We are already disabling the H1 globally using the “tiny_mce_before_init” filter and rendering 2-6 in that way.

Haven’t found anything yet through digging through filters, but good chance I’m missing something. Ideally this solution would be scalable, to allow any FCM to be overridden to make sure the proper headings are always available per component. Any insight on what filters to look at, etc, would be greatly appreciated. Thanks in advanced.

Stephen Sabatini 9 months 2022-08-29T17:06:49-05:00 0 Answers 0 views 0

Leave an answer