Mae*_*ish 13 jquery summernote
有人可以帮我使用textareaSummernote 的默认名称值吗?编辑器在页面上看起来正确(我可以使用界面修改文本)但POST根据我的理解不起作用.
我尝试了各种POST变量,但似乎没有一个是正确的.例子是summernote,note-codable和text-area.最后两个来自summernote.js.Jquery不是我经验丰富的东西,所以请宝贝 - 我.
这些是我正在使用的.
$('#summernote').summernote({height: 300});
var sHTML = $('#summernote').code();
Run Code Online (Sandbox Code Playgroud)
和
<div name="summernote" id="summernote"><?php echo $news_body; ?></div>
Run Code Online (Sandbox Code Playgroud)
我还尝试将下面的行分别尝试将textarea名称更改为content:
var sHTML = $('#summernote').code();
$('#summernote').code();
var content = $('textarea[name="content"]').html($('#summernote').code());
$('textarea[name="content"]').html($('#summernote').code());
var sHTML = $('textarea[name="content"]').html($('#summernote').code());
var textareaValue = $("#content").code();
$("summernote").code(html);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
18099 次 |
| 最近记录: |