Wordpress Editor文本标签设计问题?

时间:2013-05-15 13:41:38

标签: wordpress-plugin tinymce wordpress

我在wordpress中尝试了Wp_editor,因为可视选项卡工作正常,文本选项卡正在获取列表顺序。

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

同样对于Visual Editor,它应该是这样的 enter image description here

我不知道wordpress编辑器发生了什么。

任何建议都会很棒。

1 个答案:

答案 0 :(得分: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 );
                                                                                ?>