News:

Join the Facebook Fan Page.

Main Menu

Post reply font

Started by szinski, July 02, 2024, 10:06:08 AM

Previous topic - Next topic

szinski

Is there any way to change the font that the editor uses when composing a new message?

Right now it looks like Courier or some other monospaced font that's not how it appears after it's posted to the forum.

Using Curve2 theme.

Thanks.

Kindred

modify the CSS for the editor
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

JBlaze

/Themes/default/css/jquery.sceditor.css
.sceditor-container textarea {
font-family: "DejaVu Sans Mono", Monaco, Consolas, monospace;
}
Jason Clemons
Former Team Member 2009 - 2012

szinski

#3
Thanks, found it in jquery.sceditor.css and fixed using:

.sceditor-container textarea {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        /* font-family: "DejaVu Sans Mono", Monaco, Consolas, monospace; */
}


Please use code tags when posting code, even code as short as this. ~ Steve

Sesquipedalian

#4
Just because I want to make sure that you are aware, you can already get what you are asking for by simply switching the editor into "what you see is what you get" mode. Just click the editor toolbar button that looks like a page with lines on it. It's the one at the end of the toolbar, shown in the image below:
You cannot view this attachment.

You can control whether the editor starts in source mode or WYSIWYG mode in the Look and Layout section of your user profile.

The included CSS uses the monospace font only when the editor is in source mode, not WYSIWYG mode. If you click the button to toggle into WYSIWYG mode, it will use the variable-width font. This was an intentional design choice to help make it apparent to the end user which mode the editor is in. You are, of course, free to change the CSS as described above, but if all you want is to have the editor text closely resemble the final post text, then just switch to WYSIWYG mode.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

szinski

@Sesquipedalian -- perfect!! that did the trick. I'll reset that theme option for all users.

JBlaze

You know, it's taken me 15 years to figure out what WYSIWYG meant...

What
You
See
Is
What
You
Get

I'm gonna go cry now.
Jason Clemons
Former Team Member 2009 - 2012

Antechinus

Lol. Dude, how did you not get that before? :D

And why, oh why, did anyone ever think this was a sane font stack to use? Beats me how it ever became popular in the first place...

font-family: Verdana, Arial, Helvetica, sans-serif;
Quote from: Sesquipedalian on July 02, 2024, 12:55:31 PMThe included CSS uses the monospace font only when the editor is in source mode, not WYSIWYG mode. If you click the button to toggle into WYSIWYG mode, it will use the variable-width font. This was an intentional design choice to help make it apparent to the end user which mode the editor is in.
It was a shocking choice that had nothing to do with design. There would have been any number of far less crude ways to indicate which mode the editor was in.

GL700Wing

Quote from: JBlaze on July 02, 2024, 01:16:34 PMYou know, it's taken me 15 years to figure out what WYSIWYG meant...

What
You
See
Is
What
You
Get

I'm gonna go cry now.

I remember first hearing the WYSIWYG acronym used almost 40 years ago (and at that time we also used to occasionally refer to a local and rather unsuccessful sporting team as SWYSIWYG - 'Sometimes what you see is what you get') ...
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

zedd151


Steve

No offense @JBlaze but that's too funny. Took me months to figure out that LOL didn't mean 'lots of love' ...  :D
My pet rock is not feeling well. I think it's stoned.

Sesquipedalian

Quote from: Antechinus on July 02, 2024, 05:52:33 PMIt was a shocking choice that had nothing to do with design. There would have been any number of far less crude ways to indicate which mode the editor was in.

I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Antechinus


JBlaze

Quote from: Antechinus on July 02, 2024, 05:52:33 PMLol. Dude, how did you not get that before? :D
Honestly, I thought it was just another weird acronym and never gave it much thought. Just pronounced it WhySeeWig Editor XD
Jason Clemons
Former Team Member 2009 - 2012

Arantor

Personally I think editing code (which source mode is), is a monospace font makes sense. But I'm weird, and I also remember when WYSIWYG was either more WYSIHWYMG (what you see is hopefully what you might get) or simply WYSIWTF.

There is an argument that bbcode is passé now and should be abandoned in favour of full WYSIWYG with no exceptions (as Invision Community has done for years) or tried to largely downplay bbcode (as XenForo does) and the fact both are moving to an editor that does not natively support bbcode in their next versions (they're both going to TipTap) should be an interesting observation.
Holder of controversial views, all of which my own.


Advertisement: