Question

How to make indent and outdent in the RTE?


Answers (1)

by Jeong-Ho Lee 13 years ago

To indent paragraph, execCommand("indent") function is used.


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


To outdent paragraph, execCommand("outdent") function is used.


For IE: document.execCommand("outdent");
For non IE: document.execCommand("outdent",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.