1

フォームのテキスト領域にwysiwyg-text-editorを使用しています。ただし、その形式のjqueryダイアログボックス内には表示されません

誰かがこれを行うのを手伝ってくれますか

前もって感謝します ;)

4

1 に答える 1

0

このwisiwygエディターを試してみたところ、機能していることがわかりました...実際のコードを確認できます...以下のコードをご覧ください

$this->beginWidget('zii.widgets.jui.CJuiDialog', array(
            'id' => 'mydialog',
            // additional javascript options for the dialog plugin
            'options' => array(
                'title' => 'Dialog box 1',
                'autoOpen' => false,
            )
        )
    );

    $this->widget('application.components.widgets.XHeditor', array(
            'language' => 'en', //options are en, zh-cn, zh-tw
            'config' => array(
                'id' => 'xh1',
                'name' => 'xh',
                'tools' => 'mini', // mini, simple, fill or from XHeditor::$_tools
                'width' => '100%',
                //see XHeditor::$_configurableAttributes for more
            ),
            'contentValue' => 'Enter your text here', // default value displayed in textarea/wysiwyg editor field
            'htmlOptions' => array('rows' => 5, 'cols' => 10)
        )
    );

    $this->endWidget('zii.widgets.jui.CJuiDialog');

    echo CHtml::link('open dialog', '#', array('onclick' => '$("#mydialog").dialog("open"); return false;'));
于 2012-10-31T10:25:23.633 に答える