how to make a message field with formatting buttons

Asked

Viewed 37 times

1

I have something on my mind here and I need the idea of you I want to put a field in my system where I can save student feedbacks, add images and format fonts, this message field that will have a text of student feedback, will be a field coming from MYSQL, I want on the screen I can format this text and letit more beautiful, more when I exit and enter the system, I want the formatting done in the text previously remain, someone knows how to do this?

  • 1

    Your question needs to be more specific. The stackoverflow communiqué, is not a community that develops tutorials or promotes discussions. We seek to answer specific questions from users who are looking for how to solve a particular problem.

  • My question was specific, I need an edit field with formatting and that is saved until after updating in the database.

1 answer

0


From what I understand, you want a WYSIWYG. Well, next:

I recommend then the Ckeditor plugin. Before implementing, you can check here my example https://jsfiddle.net/richellyitalo/g65z24wr/2/.

Follows the code: <script src="//cdn.ckeditor.com/4.6.2/basic/ckeditor.js"></script> <script> CKEDITOR.replace( 'campo1' ); </script> <textarea id="campo1">Valor inicial aqui</textarea>

  • Very cool, as I do the implementation?

  • The same way it is above, just replacing the field name.

  • Thank you very much, it helped a lot

Browser other questions tagged

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