Tags inside textarea

后端 未结 2 968
迷失自我
迷失自我 2020-12-12 03:29

I have an administrative area with some elements (2 fields text and ID and sort field) and each elements can be manage by create/edit/delete actions

And I think that

相关标签:
2条回答
  • 2020-12-12 03:51

    Anyone who comes across this might want to use a "content editable div" e.g.

    <div contenteditable="true"></div>
    

    here's an example http://jsfiddle.net/mekwall/XNkDx/

    thanks to https://stackoverflow.com/a/4705882/194309

    0 讨论(0)
  • 2020-12-12 04:03

    The content model for textarea is #PCDATA (processed character data). This means elements inside will not be accepted.

    0 讨论(0)
提交回复
热议问题