MarkdownX image insert not working
Hello,
I installed MarkdownX following the steps in the install instructions and video. This includes using a fresh laravel install based on the TALL preset per the video. When trying to attach an image, I get the following non-working situation:
https://the.unexpectedreboot.com/1688494763
There are no console errors in the browser. The images I attempt to use DO get uploaded into my ./storage/app/public/images
folder. I cannot find anywhere that an error is being generated.
This is using all the current versions of the TALL stack and MarkdownX v1.0.6
















Hi there,
Indeed this seems to be a problem with Firefox. Document.execCommand()
has been depreciated by Mozilla and they still don't have a working alternative.
For the moment, what you could do is:
- Edit this file:
resources/views/livewire/markdown-x.blade.php
- On line 1205 add this:
if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1){
editor.focus();
editor.value = updatedText;
return;
}
Let me know how it goes!
















No problem at all! Happy to hear that it is working with that fix!