insert custom text into Mysql

Asked

Viewed 105 times

0

I have a textarea that the user can set font size, the text font itself and insert images. My question and how to pass this custom text to Mysql.

  • Your question is unclear "the user can set font size, the text font itself and insert images", how does he do this? You usually use Bbcode or Markdown, Stackoverflow uses the latter for example. You save in the database normally, then in the case of Bbcode exists bbcode_create and bbcode_parse, that converts to HTML, just so you can display.

  • would have to see how the user chooses these properties, but, thinking in a simpler way, you can store the html content directly for later display, or, store these properties in addition to the text. I would do it this last way, but still I would have to know more details of your project.

  • I have in my bank a column of type blob to insert the text or text with image in this case it works the only problem and at the time of picking up the value with ajax it only picks up the text the style that is set in the textarea(color , font-size, font-family) it can not catch. I already did this in c# turns everything into binary, but in c# it recognized the style and passed everything to the bank summarizing my problem when I try to get the value with jquery it takes the string clean and dry.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.