[EXTENSION] editMe WYSIWYG editor based on CKEditor
#1
Posted 02 August 2011 - 09:02 AM
Extension page
#2
Posted 03 August 2011 - 05:17 AM
$this->widget('ext.editMe.ExtEditMe', array(
'name'=>'test',
'bodyId'=>'superman',
'uiColor'=>'gold',
));
Roopz, on 03 August 2011 - 12:15 AM, said:
#3
Posted 05 August 2011 - 10:59 PM
1.1
- Completely rewritten code
- Toolbar now fully customizable
- More options
- Better error handling
- Code output is now minified
- Bugfixes
#4
Posted 08 August 2011 - 03:48 AM
1.1.1
- Code optimizations
- Toolbar presets removed
#5
Posted 09 August 2011 - 10:41 AM
1.2
- New option baseHref
- Optimized publishing process
- clientScript optimizations
- Use Yii's CJavaScript Helper
- Compatible with PHP 5.1.0+
- New editMe Helper
#6
Posted 28 August 2011 - 09:12 PM
Here is my code....
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'content-form',
'enableAjaxValidation'=>false,
)); ?>
<p class="note">Fields with <span class="required">*</span> are required.</p>
<?php echo $form->errorSummary($model); ?>
<div class="row">
<?php echo $form->labelEx($model,'content_title'); ?>
<?php echo $form->textField($model,'content_title',array('size'=>60,'maxlength'=>80)); ?>
<?php echo $form->error($model,'content_title'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'content_text'); ?>
<?php $this->widget('ext.editMe.ExtEditMe', array(
'model'=>$model,
'attribute'=>'content_text',
));?>
<?php echo $form->error($model,'content_text'); ?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->
It populates with the data so I know its linked up right, but changes are not saved.
#9
Posted 03 October 2011 - 08:02 AM
1.2.1
- Updated CKEditor to 3.6.2
- New option: autogrow
- Code optimizations
#10
Posted 10 October 2011 - 05:27 AM
1.2.2
- Code optimizations
- Unify resizing options (new option resizeMode)
#12
Posted 10 December 2011 - 05:24 PM
#13
Posted 13 January 2012 - 02:00 AM
can you give me an example configuration using image uploads?
thank you
#14
Posted 21 February 2012 - 09:47 AM
Victor Scarpellini, on 13 January 2012 - 02:00 AM, said:
can you give me an example configuration using image uploads?
thank you
#15
Posted 29 February 2012 - 08:25 AM
I have the same problem Kyle_van had above, $_POST['message'] stays at 0 always.
It seems to have some random errors when ajax is used to display it
#16
Posted 02 March 2012 - 10:49 AM
Keep up the good work.
#17
Posted 04 April 2012 - 03:06 PM
When I look at the POST data submitted, text is always blank. Calling serialize() on the form within the JS console returns the POST string, and the text variable is blank. serialize() is what I'm using to create the POST string before submitting. Thanks!
_form.php (loaded via ajax)
<?php
$form=$this->beginWidget('CActiveForm', array(
'id'=>'note-form',
'enableAjaxValidation'=>false,
'action'=>$model->isNewRecord ? Yii::app()->createUrl('/note/ajaxcreate') : Yii::app()->createUrl('/note/ajaxupdate/'.$model->id)
));
$this->widget('ext.editMe.ExtEditMe', array(
'model'=>$model,
'attribute'=>'text',
'width'=>'460',
'height'=>'250',
'toolbar'=>array(
array(
'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat',
),
array(
'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote',
'-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock',
),
array(
'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo',
),
array(
'Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'
),
)
));
$this->endWidget();
?>
#18
Posted 05 April 2012 - 10:20 AM
http://stackoverflow...t-from-ckeditor

Help















