Reputation: 7785
I’ve got a conceptual question about realizing a CMS by myself. I am Trying to create a concept for a simple backend editor on which the user can enter Text, but can also add some input fields which must be usable. I am trying to figure out the best way to create a WYSIWYG-Editor for either Text, Images, Tables but also Form-Elements.
One part of this realization is the WYSIWYG-Editor, another part is the question how to save the whole page after editing (saving whole site as HTML? Or Saving as parts in a database or what? Thanks for your input!
Upvotes: 0
Views: 702
Reputation: 167182
AutoSave
.This plugin adds auto-save capability to the TinyMCE text editor to rescue content inadvertently lost. By using localStorage.
You can check out more information from the description page.
Upvotes: 1
Reputation: 87
tinyMCE + jquery will do the job on the client side. tinyMCE represents it's content as a HTML + base64 encoded images, so you should save that in the database into a LONGTEXT column type (long because when there are images presented, simple TEXT's capacity will not be sufficient)
good practice is when the controller on the server side is REST enabled, so you can easily POST/PUT/DELETE tiny's content via jquery's ajax handler
Upvotes: 1