I would like to know what exactly I should study to be able to transform a textarea into a WYSIWYG text editor. Logically I know that I should use Javascript , but I can not imagine how the styles are applied in real time in the content within the textarea. I've already done some research on the internet and people only link to publishers ready. I do not want a link ready. I'd like to know the way more or less to be able to apply the style to the chosen part of the content within textarea . I even saw people talking about using iframe , but they did not explain exactly what I would do with iframe to achieve this.