1. Use Grud to complete the basic content creation work. The class named content for this operation
2. In protected/model/content/content.php, in the functions public function attributelabels (), put the label in culture.
3. Download TinyMCE. Unzip it, put it in protected/extensions/, and complete the installation.
4. In protected/view/content/_form.php, use the following code:
<div class= "Row" > <?php echo $form->labelex ($model, ' content ');?> <?php $this->widge
T (' Application.extensions.tinymce.ETinyMce ', Array (' model ' = = $model, ' attribute ' = ' content ', ' language ' and ' ZH-CN ', ' Editortemplate ' = ' full ', ' htmloptions ' =>array (' Rows ' =>6, ' col
S ' =>50, ' class ' = ' TinyMCE '), ' options ' = = Array ( ' theme_advanced_buttons1 ' = ' undo,redo,|,bold,italic,underline,|,justif Yleft,justifycenter,justifyright,justifyfull,|,outdent, indent,|,advhr,|,sub,sup,|,bullist,numlist,|, Formatselect,fontselect,fontsizeselect,|,cut,copy,paste,pastetext,pasteword,|,search,replace, ', ' theme_advanced _buttons2 ' = ' and ' Tablecontrols,|,removeformat,visualaid,', ' theme_advanced_buttons3 ' = ', ' ' Theme_advanced_buttons4 ' + ', ' theme_advanced_toolbar_location ' = ' top '
', ' theme_advanced_toolbar_align ' = ' left ', ' Theme_advanced_statusbar_location ' = ' none ', ' Theme_advanced_font_
Sizes ' = "10=10pt,11=11pt,12=12pt,13=13pt,14=14pt,15=15pt,16=16pt,17=17pt,18=18pt,19=19pt,20=20pt",) ));?>