bryanph/GeistMap

Pasting Text with headings results in strangeness related to underlying structure.

MattGyverLee opened this issue · 1 comments

From the underlying code, it seems that pushing the H1 button creates text that is tagged as H3. Pushing H2 creates H4, and H3 creates H5.

Pasting in a simple document from Word or HTML with H1, H2, and H3 creates a strange situation where H1 and H2 show up small and orange, yet the text that was H3 shows up as large and black.

In exporting the text state (, I ran into similar problems. To keep the documents consistent, it would be best to start a document at H1 rather than H3, unless conversions are run to consistently step down pasted text.

H1 could have the default CSS of large and black, and the orange page headers could be <H1 class="bigorange"> or something similar.

Problem is that in html terms the title should be h1 and so the other content must be h2 and above.
What can be done however, is to determine if there is html in the pasted text and convert them to the right tag.

In any case, this needs to be resolved. Thanks for filing the issue.