Forien / foundryvtt-forien-scene-navigator

1 stars 2 forks source link

[BUG] Conflict with Moerills Efficacious Markdown Editor #5

Open InfraredAces opened 4 years ago

InfraredAces commented 4 years ago

Module Version: v0.1.6

Describe the bug @ SceneActivate and @ SceneView links become just text when activating Moerills Efficacious Markdown Editor even when regular @ Scene links remain clickable.

To Reproduce Steps to reproduce the behavior

  1. Create either @ SceneActivate or @ SceneView entitly link in journal entry
  2. Save Journal Entry
  3. Activate Moerills Efficacious Markdown Editor
  4. Open previous journal entry
  5. See previously clickable Scene entily link as only text

Expected behavior When both MEME and Forien's Scene Navigator are active, I am able to edit a document in Markdown as well as add Scene Activation and Viewing entity links to journal entries.

Screenshots Bug-MEME_Active-FSN_Active BUG-MEME_Inactive-FSN_Active

Browser:

Foundry Version:

Game System:

Additional context Meme - Moerills Efficacious Markdown Editor

Forien commented 4 years ago

I added links in such a way (albeit a little hacky) that they are seen by Foundry as new entities, so "TextEditor.enrichHTML()" method turns them into clickable links. So I'm almost certain that MEME did not use "enrichHTML" and only implemented basic entity links on their own, making it incompatible with other modules.

If I'm right, there is nothing I can do on my side.

InfraredAces commented 4 years ago

Looking at the src/scripts/index.js file, they do seem to use TextEditor.enrichHTML() in lines 33, 179, 180, but I think they’re modifying the method.