rich-text-editor Replicating functions of a rich text editor using simple web api's - document.execCommand