Jump to content
  • 0

Question

Posted

hi

in case you require to make a wysiwyg editor like ckeditor, how to enable it in portal-cms plugin

 

i feel i need to insert it here

<?php
$this->Form->label($this->_('CmsManagePlugin.index.field_content', true), 'content');
$this->Form->fieldTextarea('content', $this->Html->ifSet($vars->content), ['id' => 'content', 'class'=>'wysiwyg']);
 ?>

 

i tried a few methods, but all in vain

any help would be awesome

thanks

amit

3 answers to this question

Recommended Posts

  • 0
Posted

 

11 hours ago, Tyson said:

I believe the CKEditor JavaScript file must also be set to the view in the appropriate controller, e.g.


$this->Javascript->setFile('ckeditor/ckeditor.js', 'head', VENDORWEBDIR);

 

 

may be that is the reason, i was not being able to achieve it

will post here, once i test it

 

thanks to both of you for reply

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...