Search code examples
phphtmlfroala

How to set Froala editor default text?


I write that in my code:

<textarea id="content" name="content" value="something"></textarea>

I want it to be this way:

enter image description here

but I see this instead:

enter image description here

How can I change it?


Solution

  • You need to put the text like this:

    <textarea id="content" name="content" value="something">something</textarea>
    

    or you can do this with placeholder:

    <textarea id="content" name="content" value="something" placeholder="something"></textarea>
    

    hope it helped you