how to make a message field with formatting buttons

1

I have something in 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 formatting sources, this message field that will have a student feedback text will be a field coming from MYSQL, I want on the screen I can format this text and make it look more beautiful, more when I go out and enter the system, I want the formatting made in the text to remain, does anyone know how to do it?

    
asked by anonymous 18.02.2017 / 19:58

1 answer

0

If by the way I understand you want a WYSIWYG. Well, it follows:

I recommend the CKEditor plugin. Before implementing, you can check here my example link .

Follow 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>

    
18.02.2017 / 20:22