我使用引导模态为每个文本区,所以有一种方法使用ajax或jquery使文本区活动后,我点击按钮打开模态?我还使用php变量填充默认的textarea文本。
编辑:我刚刚发现你可以使用"内联"功能(它成功地消除了缓慢的页面加载)。但是如何在没有输入的情况下提交表单呢?下面是你应该使用的代码:
<form method="post">
<div class="myeditablediv">Click here to edit the second section of content!</div>
</form>
我决定用Froala html编辑器代替,这解决了这个问题。加载超过100个编辑器无需加载时间。而且更容易使用。