Hello,
trying to update content of a redactor widget instance by jquery
<?php
$this->widget('ImperaviRedactorWidget', array(
'model' => $model,
'attribute' => 'myAttribute',
));
?>
Neither of the documented methods is working (for me):
$('#Model_myAttribute').redactor('insertHtml', 'lorem ipsum');
$("#Model_myAttribute").redactor("set","lorem ipsum");
$("#Model_myAttribute").redactor("code.set","lorem ipsum");
What am I missing?