Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Save text in MySQL with HTML-Code #203

Open
MarcTroll opened this issue Aug 30, 2015 · 1 comment
Open

Save text in MySQL with HTML-Code #203

MarcTroll opened this issue Aug 30, 2015 · 1 comment

Comments

@MarcTroll
Copy link

Hey,

I'm using this Editor for my Website and I would like to save the input/text with all Tags as HTML in my MySQL database. How can I realize this? I tried a lot, but my system doesn't convert from WYSIWYG to HTML-Code to save it with vaild HTML-Tags. I hope you can help me.

~ ilou

@hamada147
Copy link

I just started using it so I don't know if this is going to help or not but have you tried taking all the data inside the div id="editor" using JS like this

var data = document.getElementById('editor').innerHTML;

then send it to php throw a button that do a function and this function take the data from the div then send it to a php file like this

var url = "example.php?data=";
url += (string)data; // which is the variable that we saved all the data into it 
window.location = url;

try it and tell me if dose work or not
but i think it should work fine from my concept perspective

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants