Question

How to make superscript and subscript in the RTE?


Answers (1)

by Jeong-Ho Lee 13 years ago

To make superscript, execCommand("superscript") function is used.


For IE: document.execCommand("superscript");
For non IE: document.execCommand("superscript",false,null);


To make subscript, execCommand("subscript") function is used.


For IE: document.execCommand("subscript");
For non IE: document.execCommand("subscript",false,null);


Related Questions

New to Qsponge? Sign Up!

Already a Member?Login!

 

Ask a Question!

All questions submitted to Qsponge are anonymous, no user information is associated with any question.