-
-
Notifications
You must be signed in to change notification settings - Fork 836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Markdown] Toolbar causes issues in IE 11 #1702
Comments
Thank you for this report. I am able to reproduce the same issue on Beta 8.1 and IE 11 |
Not sure if you guys already know but it does generate a javascript error
And after nothing really works anymore except for refreshing the page |
@MichaelBelgium Hm, flarum's source code has no mention of any Reflect class, it could be one of the dependencies and/or extensions. Could you perhaps reproduce this locally with debug mode enabled and post the code surrounding the line erroring? |
I hope this can be solved soon. Sorry i cannot help but seems version Beta 8 was not having this issue. BUT.. maybe is Internet Explorer who doesn't work very well. In the past i found issues on Edge where on my blog some link image was not clickable. Now the issue has been resolved in Edge but is present on Internet Explorer... so maybe Flarum is not working on Internet explorer because of browser issue also... in any case seems version 8.0 (Flarum) was working. |
@datitisev There is a call to |
@franzliedke Internet explorer seems to be the only major browser that does not support it... do we want to include (see the browser compatibility table). |
Basically, yes. I suppose we should make proper use of @babel/preset-env (which is already part of our webpack config) to properly target a specific set of browsers, instead of handpicking polyfills whenever we encounter issues. But I have far too little experience with Webpack and Babel to a) make this change and b) judge whether the current setup has other benefits. |
I believe this is due to one of the extensions. @Ralkage Can I ask you to disable extensions and enable them one-by-one to find out which one it is? Alternatively, someone could dig through the compiled JS in all the extensions mentioned above. 😉 |
@franzliedke Hi :) Is just mine test, feel free to test more. Seems not to me to be an extension if is not a core extension to give issues. |
I meant all of them, including the core extensions. I identified the faulty one: disable flarum/markdown, and the problem should be fixed. Probably a problem with the custom-elements polyfill that we need for GitHub's markdown toolbar. |
Sorry :)
Confirmed 👍 |
The fix is rolled out on discuss - please confirm! |
It works for me. Thanks. |
Perfect. And thanks @datitisev !!! |
@franzliedke in my test works mean now i am able to create post on IE but... i am trying to insert a link. Seems button is visible but code is not working. It's only me? Seems the markdown bar is visible but commands doesn't works, works for you? |
Oh yes, the toolbar is broken even in a new Chrome browser now. 😕 |
Custom elements are a pain to bundle for a large range of browsers. I am trying to integrate babel-plugin-transform-custom-element-classes, but not having success so far. |
We could disable the markdown bar on IE. Simple and easy. |
That would be fine as well. |
I think this should be an absolute last resort |
Relevant for understanding: webcomponents/custom-elements#90 Ultimately our goal will be to stop using github-markdown-toolbar, and just extract the useful parts (mainly the textarea manipulation logic) without any of the custom element stuff. Not sure if we can get this done for beta 9? I'd say time is better spent doing that than it is trying to change up our babel/webpack config. |
I'm proposing to go for the proposal by @datitisev ; drop the toolbar in case the user is on IE. That browser is no longer supported anyway and users can still type manually. @flarum/core please Yea/Nay so we can get b9 out. For beta 10 or 11 we will look at implementing our own toolbar or find a suitable replacement. |
Fine with me! |
What about conditionally loading the toolbar only if the browser natively supports custom elements? That would solve the IE issue, plus reduce file size... |
We just need the simplest lowest-effort stopgap solution for now, any further work should be put into the definitive solution (replacing github-markdown-toolbar). So rather than fiddling around with multiple JS files and conditional loading, I'd suggest just use a conditional feature-detection at runtime and don't initiate the toolbar if Reflect API is not present? |
I agree with @tobscure, get beta 9 out first. Design a better implementation for the next release. Can you agree on that @franzliedke ? |
The most important issue for me is doing feature detection and not browser detection. Whether checking for |
Did just this and made a PR at flarum/markdown#7. Wasn't sure if ...And yes, the buttons work now 🤦♂️. |
Do we want to re-use this issue for the toolbar refactoring or create a new one? |
Hey! I just tried to create a new discussion and post to an old one in IE 11 and it worked: |
@ivangretsky at the moment the Flarum editor on the official forum is broken so this is why you see you are able to post on Internet Explorer 11. Try to put a link with the editor and you will see you are not able to do. We need wait for the fix... is working in progress. |
Was not that easy ((( |
The editor on the official Flarum community continue to be broken. |
@PeopleInside that's because discuss hasn't been updated yet. Have some patience please. |
@luceos no problem for me. Just something to inform you, i was suppose maybe you forget or don't' know. |
I think this issue shouldn't block a release. Microsoft does not recommend IE 11 by default. |
@Magicalex This issue has been resolved in the latest version of flarum/markdown. At least, not being able to reply. IE support for the markdown bar isn't yet available, but that won't be added in beta 9. |
So, from what I understand Beta 9 is ready? |
@aguilaair Beta 9 only disables the markdown toolbar on IE, it still doesn't support it, so that's why this issue remains open. |
Bug Report
Current Behavior
In Internet Explorer Version 11 (11.407.17134.0) on Windows 10 (10.0.17134 Build 17134), I am unable to create a discussion or even reply to one when I am logged in. What makes this absolutely weird is that I'm getting no errors in the console and the only reason how I came across these bugs was that I was in the process of retesting to #1174. I can reproduce this both locally and on Flarum Discuss (despite Flarum Discuss running on dev-master). I have kept in mind that Microsoft does not support this browser anymore as of January 12, 2016, but it is still bundled with the OS and is still widely used with legacy web applications.
Steps to Reproduce
Part 1:
Part 2:
Expected Behavior
In using IE11, I should be able to create a new discussion and see the discussion composer pop-up as well as being able to reply to any discussion that is not locked.
Screenshots
N/A
Environment
Possible Solution
N/A
Additional Context
N/A
The text was updated successfully, but these errors were encountered: