2017-10-06 76 views
0

我添加了timymce到一個textarea,但是當它活動時它不發佈,我的意思是,單擊提交按鈕什麼也不做。雖然desabling TinyMCE的形式工作就好了... ...有可能是少了點什麼,但我不能找到什麼.... 這裏是我的代碼:表單不會發布tinymce激活

.... 
     <script src="../libs/tinymce/js/tinymce/tinymce.min.js" type="text/javascript"></script> 
     <script> 
tinymce.init({ 
    selector: 'textarea#pagebody', 
    language: 'ca', 
    theme: 'modern', 
    content_css: '/mnt/vmdata/iac/web/css/CQPweb-yellow.css', 
    autoresize_min_height: 350, 
    autoresize_bottom_margin: 30, 
    plugins: 'advlist autoresize charmap colorpicker emoticons help imagetools legacyoutput media pagebreak print spellchecker template toc wordcount anchor autosave code contextmenu fullpage hr importcss link nonbreaking paste save tabfocus textcolor visualblocks autolink bbcode codesample directionality fullscreen image insertdatetime lists noneditable preview searchreplace table textpattern visualchars', 
    toolbar1: 'formatselect | searchreplace bold italic strikethrough forecolor backcolor | link anchor | alignleft aligncenter alignright alignjustify outdent indent pagebreak | numlist bullist table hr | removeformat code charmap insertdatetime codesample fullpage fullscreen preview | image media | help', 
    image_advtab: true, 
    images_upload_url: 'postAcceptor.php', 
    images_upload_base_path: '', 
    images_upload_credentials: true 
}); 
     </script> 

</head> 
<body> 
<form name="documentation" action="createpage.php" method="post"> 
<p><select size="1" name="corpusname" required> 
<option style="font-size: 95%;" value="">Select corpus</option> 
<?php 
$result = mysqli_query($dbiac, "SELECT * FROM corpus_info") or die(mysqli_error($dbiac)); 
while($corpus = mysqli_fetch_array($result)){ 
echo "<option style='font-size: 95%;' value='".$corpus['corpus']."'>".$corpus['title']."</option>"; 
} 
?> 
</select></p> 
<p><textarea name='pagebody' id='pagebody' rows='60' required></textarea></p> 
<p><input type='submit' value='Create page' /></p> 
</form> 
..... 

回答

0

這幾乎是難以置信,但「微小」的東西那就是阻止發佈表單是textarea標記處的「必需」屬性,因此將其解決即可解決問題!