PolicyStat / ckeditor-plugin-structured-headings

MIT License
0 stars 1 forks source link

Detect current numbering scheme on load #68

Closed caffodian closed 7 years ago

caffodian commented 7 years ago

When the document content is replaced, look at the headings, and figure out which numbering scheme best fits the document.

This is mainly for loading the doc, but also works for if someone replaces all the content via the source panel.

fixes #67

caffodian commented 7 years ago

Insanely annoying bug - for some reason, dataReady fires before the html is set in one particular test, and never afterwards.

jlward commented 7 years ago

Code looks good. Reviewing JS is hard, but I don't see anything that jumps out as wrong.