Sometimes developers face issues to use the Yii TinyMCE extension on the production server. It stops showing anything on production except words “Text mode”! This happens because the server already compresses the data and then the extension tries to compress again! As a result, the browser can’t do an auto-refresh and load the new updates.
To use on production, you can try following below steps-
<?php
array(
'model'=>$model,
'attribute'=>'body_text',
//'useSwitch'=>false,
'useCompression'=>false,
'editorTemplate'=>'full',
'htmlOptions'=>array('rows'=>6, 'cols'=>50, 'class'=>'tinymce'),
));
?>
Leave a Reply