大家好我在我的项目中使用tinymce它正在工作,但不是单击,它正在双击。我无法破解它为什么它发生请帮助?这是我的代码。 我在https://stackoverflow.com/questions/26881494/
找到了同样未回答的问题tinymce.init({
selector: "textarea", //working on double click
//selector: "#emailTetxs", //working on double click even selector with element class same result
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste imagetools"
],
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
});
其他一切都很好,但问题是双击
<form class="cmxform" id="emailForm" method="post" onsubmit="return addemail();">
<textarea id='emailTexts' name='emailTexts'></textarea>
<input type="submit" value="Save" id="submit" class="button">
</form>
function addemail()
{
dataString = $('#emailForm').serialize();
$.ajax(
{
type: "POST",
data: dataString,
url: "emails/addemail",
success: function(data)
{
alert(data);
}
});
return false;
}