Skip to content
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

[Feature Request]: Super/Subscript Editor Support #1615

Open
longview opened this issue Aug 17, 2024 · 1 comment
Open

[Feature Request]: Super/Subscript Editor Support #1615

longview opened this issue Aug 17, 2024 · 1 comment

Comments

@longview
Copy link

Feature Description

It would be really nice if the editor supported superscript and subscript tags.

I often write technical posts with mathematical formulas etc., and currently I have to switch to HTML view and manually add or tags around e.g. log10(x^2) to make it render the way I want (10 subscripted, ^2 should really be ²).

It seems like the editor handles this just fine when I add the tags manually, so I think all that's needed is to add buttons for these tags that work like e.g. the bold/italics buttons.

@candidexmedia
Copy link

candidexmedia commented Oct 7, 2024

If you're comfortable doing so, you can modify the WYSIWYG editor based on TinyMCE specs yourself. There's a button option for superscripts and subscripts, but you just need to add it manually:

I have a scrappy guide on making changes to the WYSIWYG editor that might be helpful in terms of knowing what files to edit: https://gist.github.com/candidexmedia/367711a80274b4c005fd5983df97d20c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants