-
Notifications
You must be signed in to change notification settings - Fork 185
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
Text input bug on mac chrome #891
Comments
Thanks for reporting! I've just tested and so far I haven't been able to reproduce this. Are there any changes to the default styles and do you know if the issue happen with the editor on sceditor.com? Alternatively, can you share a link to the page with the issue? |
This seems to be a really weird one. https://www.hentai-foundry.com/site/TestEditor <-- blank Here is what was reported with further testing
Screen_Recording_2022-06-17_at_7.29.39_PM.mp4The editor on sceditor.com does not seem to be affected. I'm using it in BBcode mode with some BBCode modifications: https://img.hentai-foundry.com/themes/default/js/editor.js |
Thanks for the detailed information! That is very strange, especially as it changes behavior depending on if Chrome is already open. One thing I did notice is the code is including the <script type="text/javascript">
/*<![CDATA[*/
jQuery(window).on('load',function() {
sceditor.create(document.getElementById('testEditor'), jQuery.extend({}, defaultOptions, {'style':'//img.hentai-foundry.com/themes/default/js/sceditor/minified/themes/default.min.css'}));
});
/*]]>*/
</script> The content style should be <script type="text/javascript">
/*<![CDATA[*/
jQuery(window).on('load',function() {
sceditor.create(document.getElementById('testEditor'), jQuery.extend({}, defaultOptions, {'style':'//img.hentai-foundry.com/themes/default/js/sceditor/minified/themes/content/default.min.css'}));
});
/*]]>*/
</script> That might fix the problem. The content style includes a fix for an iOS issue and it's possible it's somehow also fixing a bug in Chrome too. If it is I don't know what the bug is as that bug hasn't been an issue before. If that doesn't fix it let me know and I'll try a bit more to see if I can manage to reproduce the issue. |
Thanks. I've made the change and the bug seems unaffected. |
Sorry for the very slow response. I downloaded the files locally and have tried to reproduce this a few times but still no luck. I've just been testing again and I noticed are a few differences with your It looks like your I don't know if that's what's causing this issue but it's a strong possibility. If you replace: <script type="text/javascript" src="//img.hentai-foundry.com/themes/default/js/sceditor/minified/sceditor.min.js"></script>
<script type="text/javascript" src="//img.hentai-foundry.com/themes/default/js/sceditor/minified/formats/bbcode.js"></script> with: <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/minified/sceditor.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/minified/formats/bbcode.js"></script> does that fix the issue? |
Thinking about it some more, the differences are from the lack of character encoding header and it defaulting to something other than UTF-8. That shouldn't be the issue as the page specifies UTF-8 and I think the browser will fallback to the page encoding for those files. It would be worth checking though as I can't think of anything else it could be and I haven't been able to reproduce it yet. |
I have a mac chrome user who when entering text into the editor it appears to disappear (see attached video).
https://user-images.githubusercontent.com/1218445/173471977-69859a05-a0dc-4eaf-875d-6e934985e301.mp4
When view is switched to editor view it shows one letter per line
Changing the text alignment to anything other than left seems to work around it.
The text was updated successfully, but these errors were encountered: