2013-05-15 29 views
0

我試圖在wordpress中的Wp_editor視覺標籤工作正常,文本標籤獲取列表順序。WordPress的編輯器文本標籤設計問題?

<?php 
             $settings = array(
                 'textarea_name' => 'message1', 
                 'media_buttons' => true, 
                 'tinymce' => array(
                 'theme_advanced_buttons1' => 'formatselect,|,bold,italic,underline,|,' . 
                 'bullist,blockquote,|,justifyleft,justifycenter' . 
                 ',justifyright,justifyfull,|,link,unlink,|' . 
                 ',spellchecker,wp_fullscreen,wp_adv' 
                  ) 
                 ); 
             wp_editor('', 'content', $settings); 
                      ?> 

enter image description here

也爲可視化編輯器應該出現這樣的 enter image description here

我不知道發生什麼WordPress的編輯器。

任何建議都會很棒。

+0

你會得到任何js錯誤嗎? – Thariama

+0

不,我沒有得到任何JS錯誤只有對齊看起來像這樣 –

回答

0

最後,我做了我自己的。問題在於代碼在表格內。最後這裏是我的解決方案

<table>  <tr class="form-field"> 
      <th valign="top" scope="row"> 
       <label for="subject"><?php _e('Subject')?></label> 
      </th> 
      <td> 
       <input id="subject1" name="subject1" type="text" style="width: 95%" value="" 
         size="50" class="code" placeholder="<?php _e('')?>" required> 
      </td> 
     </tr> 
      <tr class="form-field"> 
      <th valign="top" scope="row"> 
       <label for="message1"><?php _e('Message')?></label> 
      </th> 
      <td> 

      </td> 
     </tr> 
     </tbody> 
    </table> 
    <?php 
              $settings = array(
                  'textarea_name' => 'message1', 
                  'media_buttons' => true, 
                  'tinymce' => array(
                  'theme_advanced_buttons1' => 'formatselect,|,bold,italic,underline,|,' . 
                  'bullist,blockquote,|,justifyleft,justifycenter' . 
                  ',justifyright,justifyfull,|,link,unlink,|' . 
                  ',spellchecker,wp_fullscreen,wp_adv' 
                   ) 
                  ); 
              wp_editor('', 'content', $settings); 
                       ?>