cc_config.xml automatic element insertion no longer works for <note> elements
Posted: Sat Feb 04, 2023 9:16 pm
For elements that allow both block elements and plaintext (such as <note> and <li>), we try to avoid plaintext. So in our cc_config_ext.xml file, we have entries like this:
We noticed that auto-insertion for <note> elements worked in v24.1 but stopped working in v25.0.
Testcase here:
I see that v25.0 uses a note action like this:
I guess I could modify or override this action to insert a <p> in the XML fragment. But before I do that, is there some better way I should resolve this? Or could I request an enhancement for insertion actions to also consider content completion entries, at the fragment's caret position or by some other heuristic?
It would be nice to have both the power of custom actions and the simplicity and central configurability of the content completion files.
Thanks!
Code: Select all
<elementProposals path="dd" insertElements="p"/>
<elementProposals path="li" insertElements="p"/>
<elementProposals path="note" insertElements="p"/>
Testcase here:
I see that v25.0 uses a note action like this:
I guess I could modify or override this action to insert a <p> in the XML fragment. But before I do that, is there some better way I should resolve this? Or could I request an enhancement for insertion actions to also consider content completion entries, at the fragment's caret position or by some other heuristic?
It would be nice to have both the power of custom actions and the simplicity and central configurability of the content completion files.
Thanks!