Jump to content
  • 0

how to add ckeditor in portal


Amit Kumar Mishra

Question

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

 

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...