maptool icon indicating copy to clipboard operation
maptool copied to clipboard

[Bug]: Notes with type text/markdown can not be scrolled in HTML view

Open Alzarath opened this issue 1 year ago • 1 comments

Describe the Bug

When editing a token's Notes with the type text/markdown, if you switch to the HTML view, the entire section is locked down. This is surely to prevent editing, but a side-effect is that the scroll bar is also disabled, and so sufficiently long notes can't be viewed in their entirety in this view.

To Reproduce

  1. Edit a Token
  2. Switch to the Notes view
  3. Set the type to text/markdown
  4. Enter input long enough that it would extend beyond the vertical bounds of the HTML view
  5. Switch to the HTML view
  6. Attempt to scroll down the frame with the mouse wheel or scroll bar

Expected Behaviour

I expect to be able to scroll down the frame to view the entirety of the note's formatted contents.

Screenshots

No response

MapTool Info

Version: 1.14.3

Desktop

Arch Linux

Additional Context

No response

Alzarath avatar Jan 04 '24 03:01 Alzarath

A (slightly risky) workaround is to switch to the MIME type dropdown text/html while on the HTML notes tab, which will reenable any scroll bar present and allow mouse scrolling. The risky bit is if you click back to the TEXT tab before resetting the type back to text/markdown it will convert all your lovely markdown text to html tags...

If you do this accidentally just don't click the OK button as it will save this unintended html to the notes and you will lose the markdown entirely. If you click the Cancel button you will instead just lose any markdown changes you have made since last editing the token. There is of course campaign saves to save the day, but not ideal in the middle of a game!

Baaaaaz avatar Mar 15 '24 18:03 Baaaaaz