moerill / fvtt-markdown-editor Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
As of foundry version 9, when used in conjunction with the D&D 5e system version 1.5.7 , the module appears to be breaking the drag&drop journal linking. When creating a link, e.g. to an actor, in this way the link in the journal simply ends up as @Actor[undefined]{SomeActor}.
Describe the bug
The GM Settings
menu is a global setting, meaning players can't view it or change the options within. Despite being global, however, changing the settings as the GM only affects the GM's individual client. So, as it currently stands, there is no way to disable markdown text areas/editors in player clients.
To Reproduce
Activate markdown support for chat.
setting. Allow the page to refresh when the dialog prompts it. Note that the player browser does't refresh automatically, so do so manually.# Hello
in the chat text area of both browsers. In the GM browser the text is styled normally, as you'd expect having deactivated markdown in the chat. In the player browser, however, it is styled as a header, indicating that the Activate markdown support for chat.
setting had no effect on the player's client.Activate markdown support for all rich text editors.
setting using a journal entry for which the player has owner privileges. The player's client continues to use the markdown editor despite the GM setting being deactivated.Expected behavior
I'd expect the GM Settings
options to have a global effect on both GM and player clients rather than just affecting the GM's.
Module incompatibilities
Works with no other modules enabled.
Desktop (please complete the following information):
I'm not sure if it makes sense to report here or not given that fvtt-markdown-editor
works fine with the stock Foundry VTT styles but I figured I'd mention it. The chat input looks like this when Ernie's Modern Layout is enabled.
This seems to be fixed by adding width: 100%
to the .EasyMDEContainer
element in the .chat-form
element.
I can submit a PR to fix this later if others think that this repo is the appropriate place to address it.
Inherit from the EasyMDE class, make it easier to update the libraries used, ...
still TODO:
Module version 3.2
Foundry version 0.6.5
Browser Chrome
OS Windows 10
When using markdown and opening a journal with embedded links for other journals the embedded links now show text rather than the entity links themselves that can be clicked on and followed to other journals. 0
Module Ver. 0.3.2
FVTT Ver. 0.6.5
Using App, but also on Chromium-based browsers
When using markdown editor in conjunction with Combat Utility Belt's enhanced conditions module it refuses to print the link for the journal entry of the condition, I suspect because markdown doesn't like being surrounded by html tags and the chat message being made uses a template.
Should be easy to create:
I think it would be pretty unreasonable to suggest accounting for every module posting to the chat. My personal suggestion would just be to allow the ability to turn off markdown in chat as a setting, but I'll leave it up to your judgement.
Discord Handle: @mercedes-benz#4852
Let me know if I missed something, I can post full module list as well but I tried on a fresh world with just those two and got the same results.
I made MEME to be extendable by different plugins, so everyone can have his/her custom meme!
All these plugins though should go into their separate modules, so there is no "dead code weight" for people not using those features (and less breaking modules if a feature doesn't work or so)
Also this allows for more people to just create their own plugin, without having to bother with me being to lazy to react to pull requests or possibly complaining about not liking stuff! If you need any more hooks or help for creating plugins, just contact me here or on discord and i'll try to help.
A small list of plugin ideas, to be updated:
Feel free to add your own ideas in the comments! (Or claim some ideas there if you want.)
Heya
Just a small update from my side:
I am currently and for the near future kinda busy with personal stuff/work and am not able to do much module work. This state will last at least until mid september.
If something really breaks i hope to be able to provide those bug fixes.
Also any big changes/feature updates will propably not come for FVTT 0.6.X anymore, but will be designed for FVTT 0.7.X. (Since i'd guess that its going to be at beta or close to it then.)
Best regards
Moerill
When a text spans multiple lines without linebreak codemirror does strange stuff.
The cursor gets to big (spanning all the lines affected), selecting feels like it can#t decide what exactly it wants to select, ...
Search for difference PF2e (items) and other editors, try to solve it.
Description
When using the Quick Insert module (Now requiring Keybind lib), pressing "Enter" or "Backspace" when typing a chat message does not carry out the default behaviour. Instead a console error is thrown which halts the keybind default action. More detail below:
Bug
The below console error is thrown from a codemirror when checking the Quick Insert keybind settings game.settings.get('quick-insert', 'quickOpen')
:
Uncaught Error: This is not a registered game setting
get foundry.js:1146
onRender quick-insert.js:30
fe codemirror.js:568
me codemirror.js:577
ua codemirror.js:7196
ei codemirror.js:3923
Steps to replicate
Expected Behaviour
"Enter" should send the chat message, rather than throw an error.
Desktop:
Describe the bug
Using MEME together with Cautious Gamemaster's Pack breaks one of Cautious Gamemaster's Pack's features, namely notify typings.
There are no console errors as far as I can tell.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A box should pop up below the chat box notifying that a user is typing.
Module incompatibilities
I tried using Cautious Gamemaster's Pack on its own as well with 20 other modules at once which produced the desired result, so I am fairly confident it is these two modules conflicting.
Screenshots/GIFs/Videos
Example of the notification from Cautious Gamemaster's Pack page.
Desktop:
Additional context
I have noticed the features stopped working some time in the past but only decided to pinpoint the reason now. I am fairly certain it has persisted since at least Foundry version 0.6.6 and MEME version 0.3.X. I am not sure about Cautious Gamemaster's Pack version however.
Uhm ye.. my mistake
only listening to changes on the checkbox, so setting it on default doesn't do anything..
Taken from #11 and split into this issue and the original one.
Module Version: 0.3.2
FVTT Version: 0.6.6
Browser/OS: Firefox, Windows 10
Bug description:
The roll icon is broken when the two modules are enabled together, disabling either of the modules fixes it.
No console errors.
To Recreate: Install Tidy5e Sheet and MEME and enable them both in the same dnd5e world.
Screenshots:
Discord for further questions: Ghost desu#1312
While MEME is on, for players only (not for GM) Dice Tray buttons under the chat window will not add anything in the text field of the chat window, but will still roll.
MEME breaks certain vital Quest Log functions like saving quest descriptions and closing out Quest Log windows.
As per Forien "it probably expects text editors to be exclusively used on entity sheets and Quest Form is not entity sheet".
Basic Settings Menu consisting of:
Using the template
Choose a fitting title to your issue.
Please go through each section, adding as much detailed information as possible and remove the default text. If a section is completly irrelevant for some reason, delete it completly.
Also ideally be somewhat responsive in this issues thread so you can answer possible questions i have.
Describe the bug
I don't see how to call Quick insert inside a journal note to reference an entity. With the default editor, there is a magnifying glass icon but this does not seem to be the case with "Meme »
when I use the shortcut inside the editor, (ctrl + ), it calls Quick insert to find the entity but it is outside the editor
To Reproduce
Steps to reproduce the behavior:
Expected behavior
the ability to enter a link (@entity...) in the editor
Module incompatibilities
Screenshots/GIFs/Videos
picture of the editor after having entered the shortcut "ctrl + "
Desktop (please complete the following information):
Additional context
Is your feature request related to a problem? Please describe.
Some highlighting can be hard to read
Describe the solution you'd like
Do some custom highlighting, preferably using the default FVTT styles and classes, if CodeMirror does allow for that.
Describe the bug
Since version 0.4, the 'close' button (to close an journal entry for example) no longer works. Nothing happens when I click on it so it is impossible to close once open
Desktop (please complete the following information):
Something in the sheet design of the PF1e system sheets is incompatible with this otherwise excellent module.
I would attach the relevant css information, but I do not know how.
Describe the bug
With vim keybindings, pressing Esc hides the cursor and prevents further interaction until I click the text again.
To Reproduce
Expected behavior
It should not make the cursor disappear, spamming Esc is a common way to make sure you're in normal mode.
Module incompatibilities
Same thing with this being the only module installed.
Screenshots/GIFs/Videos
Not necessary.
Desktop (please complete the following information):
Module Version: v0.3.2
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
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.
Browser:
Foundry Version:
Game System:
Additional context
FoundryVTT - Forien's Scene Navigator
Why?
Mainly cause of better extendability of the renderer without editing the source code, so i can easier merge in updates.
Describe the solution you'd like
For better backwards compatibility and ease of use with already existent TinyMCE created entries add an option to (maybe automatically) convert HTML to Markdown.
Double click on text to edit at that specific point.
Probably keep the on hover button for easiness of transition from base FVTT..?
Currently when you write to long a line it doesn't break, but gets bigger and bigger and bigger, overflowing the container and the design
Describe the bug
With the new version of the markdown editor it is not possible to render html tags. My guess is that the new markdown renderer escapes these characters.
Console Errors
There are no console errors.
To Reproduce
Steps to reproduce the behavior:
<img src="...">
)Expected behavior
The with the old version this was possible and could be used to have more control over images (e.g. align to left or right, specify resolution, ...).
Desktop (please complete the following information):
Describe the bug
Select some Text, Click Secret Button.
Error in Console.
mmde.js:97 Uncaught ReferenceError: rules is not defined
at Object.toggleSecretBlock [as action] (mmde.js:97)
at HTMLButtonElement.e.action.e.action.s.onclick (easymde.js:235)
Code Crash point here.
` static toggleSecretBlock(editor) {
const secretChars = '$$$';
let cm = editor.codemirror;
const text = cm.getSelection();
let cur_start = cm.getCursor('start'),
cur_end = cm.getCursor('end');
if (cur_start.line !== cur_end.line || cur_start.ch !== cur_end.ch) {
const start_line = cur_start.line,
end_line = cur_end.line,
end_text = cm.getLineHandle(end_line).text;
const orig_text = cm.getRange({line: cur_start.line, ch: 0}, {line: cur_end.line, ch: end_text.length}),
cap = rules.block.secret.exec(orig_text);
let new_text = orig_text,`
This line here...
cap = rules.block.secret.exec(orig_text);
To Reproduce
Open Jornal.
Cerate a new Entry.
Click Edit
Cut and paste a block of text into it.
Highlight text with the mouse.
Click Secret Button.
Expected behavior
For the text to gain $$$ at the start and end of the highlighted paragraph.
Module incompatibilities
Occurs with no other modules loaded.
Also with no other modules loaded there is a report of
foundry.js:5361 Uncaught (in promise) TypeError: Cannot read property 'offsetHeight' of undefined at JournalSheet.activateEditor (foundry.js:5361) at foundry.js:32637
As well as the original error.
Desktop (please complete the following information):
Markdown Editor Module: 0.0.4
Foundry VTT: 0.6.5
Browser: Firefox 78.0.1
/ Chromium 83.0.4103.97
OS: Arch Linux, OSX
Some editor instances incorrectly apply formatting when saving. So far I have only found the issue in system-specific Applications so it's possible that changes would need to be made at the system-level. Still, I'm reporting here in the hopes that it's a more general problem that can be addressed in one place.
like this
)Description
field in DnD5e item/weapon sheetDescription
field in Savage Worlds character sheetBiography
field in DnD5e character sheetA declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.