Feature: support for subscript and superscript
See original GitHub issueHi! I have to add a button for subscript in the editor toolbar. But turns out, the subscript and superscript functionalities aren’t fully implemented. I did see a few variables (IS_SUBSCRIPT
, IS_SUPERSCRIPT
) in the source code, but I didn’t see them being used anywhere. I also went through the doc, but wasn’t able to find anything of much relevance. So I just wanted to know the state of this feature. Also, please let me know if I am missing something. Thanks 😃
Issue Analytics
- State:
- Created a year ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Format text as superscript or subscript - Microsoft Support
Insert a subscript or superscript symbol or apply superscript or subscript formatting to text in PowerPoint in Windows and Mac.Also try keyboard shortcuts ......
Read more >Subscript and superscript - Wikipedia
A subscript or superscript is a character (such as a number or letter) that is set slightly below or above the normal line...
Read more >6 Methods for Typing Subscript or Superscript Characters
1. Instructions for typing subscript and superscript characters in Word · Open the Word document you want to insert subscript or superscript ......
Read more >How to use superscript and subscript in Google Docs
The quickest way to apply a superscript or a subscript in Google Docs on the web is with a keyboard shortcut. On a...
Read more >How to use superscript, subscript, and footnotes in Datawrapper
Superscripts are characters set above the normal line of type (e.g., in 2ⁿᵈ) and subscripts are characters set below (e.g., in Cᵥₑₓ).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is available as part of TextFormatType
Like
strikethrough
implementation you have to implement for ‘subscript’ or ‘superscript’editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'superscript')
Maybe we should be? We can look into it. I guess the classes might be more flexible than relying on browser styling, but now I’m thinking about the semantics of not having the tags.