Not possible to use Block Indent Feature with custom headings #8177
Labels
squad:core
Issue to be handled by the Core team.
support:2
An issue reported by a commercially licensed client.
type:bug
This issue reports a buggy (incorrect) behavior.
Milestone
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
I exptect to be able to use the block indent feature with Custom Headers
❌ Actual result
Both buttons are never enabled, so I can not use this feature
📃 Other details
Looking into the source, I saw the indent block feature only enable itself to knownElements:
This way, we can not use this feature with any custom Headers.
A simple change can allow that. Changing the above line to:
and voilá, block indent works for all defined headers. Another option would be to have a config option, but I think it would only to double the config between headers and blockindent.
Maybe we do not need the last line, once the headings plugin always set the heading options. But if the user remove the heading plugin, I do not know the results of that.
Please, let me know if this is the way to fix this. I can make a PR, if you folks approve it. If not, please tell me what should be the solution
As a final note, the link to see the code at the end of the contribute section of block indent feature is pointing to the font plugin, not the indent plugin.
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: