Using WYMeditor

Anatomy of an Editor Initialization

So what actually happens when you call $('#my-textarea').wymeditor()?

  1. Your existing textarea is hidden.
  2. An iframe is created in that location.
  3. The attribute data-wym-initialized is added to the textarea.
  4. The WYMeditor toolbars and interface load.
  5. The iframe is initialized with the content from your textarea.