Currently, I am in the process of developing a WYSIWYG editor with the utilization of execCommand()
along with my custom drag-and-drop JavaScript functions.
One specific feature that I aim to incorporate is the ability to identify and retrieve the name and size of any selected text if it exists. Can anyone provide guidance on how to accomplish this?
Furthermore, I'm curious if there are any dedicated functions associated with execCommand()
that can assist in achieving this task?