2017-10-06 2 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

거의 믿을 수 있지만, "작은"일이 그 양식 게시를 막고 있었는데 텍스트 영역에 "필수"속성 인 태그가 있었기 때문에 문제가 해결되었습니다!

관련 문제