Text formatting options for HTML / PHP

-1

I would like to know if I have any scripts or anything related where I can add a formatting tab to the text on top of my text-area. As used in StackOverflow itself to create questions (Image 2).

Picture 1

Image2

    
asked by anonymous 16.01.2018 / 16:57

1 answer

2

Yes!

I like to use Froala Editor

After adding all dependencies to your project, just set your textarea as an input that will use the editor library.

Suppose you have a textarea like this:

<textarea id="resumoAtividades"></textarea>

You just need to do this on your JS:

<script>
        $(function() {
                $('textarea#resumoAtividades').froalaEditor()
        });
</script>

But there are several other alternatives:

The CKEditor is also well known, it's OpenSource and how to use it is similar to Froala.

To find other alternatives, search for textarea editor on Google.

    
16.01.2018 / 17:08