Why did the font change in Editor?
AnsweredFor some odd reason the editor is horrendous now, I had to switch to Legacy because now everything is and I didn't do anything
I checked several servers and they all are now bold lettered, thick italic font, this is horrendous to work with as a coder, why? why change this
Legacy editor is better but not as good as the modern editor was prior to the font change?
-
Hey there! I'm not seeing this behavior on my end when I checked a few different pages using the "Edit" function inside cPanel >> File Manager. Is it possible that you have a browser plugin that could cause this? Could you try using a "clean" browser to see if that's the issue?
0 -
Hi Rex,
I was going to paste a screencast here but I don't think its needed
Left is Chrome and Right is Edge, same "bold italic font", I didn't really do anything, well my computer rebooted and applied most likely some updates browser wise? perhaps its some default font in latest 131.0.? although not sure why or how, When in specting I can see that .ace_editor has
.ace_editor {
position: relative;
overflow: hidden;
font: 12px / normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
direction: ltr;
text-align: left;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);It has "Ubuntu Mono" as preferred along with Menlo and Monaco, once you remove the "Ubuntu Mono" you get what resembles what it should be. I checked several of our nodes, as well as different browsers.
There is no Extension that would inject the Ubuntu Mono into it for me, checked my Extensions (which would only apply to Chrome).
0 -
I was able to temporarily fix it although im certian cPanel changes it next update
ace_editor.setOptions({
"fontSize": defaultFontSize,
"mode": modeObj.mode,
"theme": "ace/theme/chrome"
});
updateWordWrapInterface();
in the /usr/local/cpanel/base/frontend/jupiter/filemanager/editit.html.ttwith
ace_editor.setOptions({
"fontSize": defaultFontSize,
"mode": modeObj.mode,
"theme": "ace/theme/chrome",
"fontFamily": "'Menlo', 'Consolas', 'source-code-pro', monospace"
});
updateWordWrapInterface();So I need to chattr +i so no update messes with the "editit.html.tt", I read on the AceEditor and this file can set this, now it looks like this
Back to normal, once I tell it what fonts I want to use.
0 -
Could you create a ticket so we can see this on your particular system? I'm still not able to reproduce this on multiple test machines that I've tested with.
0 -
Okay I have checked on a phone, its not like this on the phone using the "Internet browser" in Android
It is however in both of my Edge, Chrome on any server I choose no matter what server. So what I decided to test was in a VM with same server, same browser and yes I can confirm it is not italic and bold
This has to be something in my system, but it affects both Edge as well as Chrome. I didn't think I would need to popup a VM to test this but for some reason my system but it has to do with Ubuntu Mono
Ubuntu Mono is in use here in the VM but its not affecting it.. I checked also Firefox and Ive at least narrowed it down since you said you cant replicate it, this has to be system specific not browser because
Incognito = still same
Firefox, Chrome, Edge = all same
I don't have Ubuntu Mono on my system and not on the VM. It has to be something else that is interfering with the rendering of this.. just not sure what.. Anyway I feel a bit bad for assuming there was some cPanel update instead of checking multiple machines.
Just thought It was some design decision or a AceEditor update default, I even tried Regedit font substitution it didnt take, only thing that took was to specify in the .tt file that Id like to NOT use Ubuntu Mono.
With that said, not sure what is affecting all my browser, I just came home and it was like this which was hilarious.
If this happens to someone and they figure out how they got past it without editing a template file please feel free to submit the solution here.0
Please sign in to leave a comment.
Comments
5 comments