I have built a few CMS applications with PHP/MySQL. But one thing I haven't done is implement a wysiwyg editor for a CMS.
I would like to build one now.
In the past, my CMS apps always use form elements (textareas, select menus, textfields, etc...) to display content for pages, where a user can add/edit the content by hitting the "SUBMIT" button.
I have read several posts across many various forums on the web; most of the time, when a person posts a question about WYSIWYG, they are provided with answers that include links to a finished product. But I would like to know how it actually works!
I understand, based on my research, that most WYSIWYG editors use the DOM to apply styles to the text that is selected inside either a DIV tag, or an IFRAME. So the content can no longer appear within a form element for it to be rich-text editable.
My question is: How do you get the information inside a DIV tag or an IFRAME submitted to a database?
Any help is appreciated.