Maker Pro
Maker Pro

Subscript / Superscript in Editor

Ian

Administrator
Aug 23, 2006
1,486
Joined
Aug 23, 2006
Messages
1,486
After a suggestion from @hevans1944 in this post, I've added subscript/superscript tag buttons to the WYSIWYG editor. I remember trying to do this a few years ago, but ran in to problems - however it looks like a more recent forum upgrade has enabled us to now add this feature.

I've got a few more changes I'm trying to add to the editor "insert" dropdown, but I'm still working on figuring that out. For now, I've added the new editor icons to the left of the "save" button :).
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,700
Joined
Nov 17, 2011
Messages
13,700
a2 <> a2 <> a2
O.K., in direct comparison subscript works, too, just not that obviously as superscript
 

Ian

Administrator
Aug 23, 2006
1,486
Joined
Aug 23, 2006
Messages
1,486
I'll see if there's something I can do to tweak subscript, as I agree it doesn't look too obvious - I'll have a play around and see what I can do :).

Testing:

H2O
H2O
New line
Super
 
Last edited:

Ian

Administrator
Aug 23, 2006
1,486
Joined
Aug 23, 2006
Messages
1,486
I've added some manual CSS overrides to the subscript code, does that look better now? You may need to hit CTRL+F5 to force refresh the CSS cache, so that the page re-renders correctly.
 

hevans1944

Hop - AC8NS
Jun 21, 2012
4,878
Joined
Jun 21, 2012
Messages
4,878
Gee, @Ian, you are AWESOME! Thank you very much.

I did a preliminary investigation on the World Wide Web with Google using keywords like "xenforo" and "super-script" and "sub-script" and found lots of discussion (there is a XenFORO forum for admins and programmers like yourself!), but most of it went over my head since I am not a "programmer" per se. So I gave up and asked you directly. Thanks for responding so quickly.

Hop
 
  • Like
Reactions: Ian

Ian

Administrator
Aug 23, 2006
1,486
Joined
Aug 23, 2006
Messages
1,486
You're very welcome :). Whenever I can make little tweaks to improve things for members, I try my best :D.
 
Top