2017-10-06 8 views
0

私はテキストエリアにtimymceを追加しましたが、アクティブな状態で投稿しないと、送信ボタンをクリックしても何もしません。フォームが正常に動作しますTinyMCEのdesablingますが...おそらく何か欠けているが、私は はここに私のコードです....何を見つけることができません。フォームは活性化された状態で投稿しません

.... 
     <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

それはほとんど信じられないが、「小さな」ものですフォームが投稿されるのを妨げていたのは、テキストエリアタグの「必須」属性なので、問題を解決してください!

関連する問題