Redactor in a Custom Block
Permalink 3 users found helpful
            Does anyone have an example of how to include the redactor 'bar' within a custom block that they might be willing to share with me? That seems to be my next 5.7 hurdle. 
Thanks in advance.
C
    Thanks in advance.
C
                        Thats awesome. Ill give it a try. Thank you, C
I think I was missing the public functions add() and edit()... oops.
                I think I was missing the public functions add() and edit()... oops.
                        Awesome MrKDilkington! Thank you!                    
                
                        This is great, and I have got it working on the main site, but I am trying to configure a dashboard form that will require Redactor. I have following the same instructions but cannot get it to work on my Dashboard Single Page form.
Any suggestions?
                Any suggestions?
                        That is a good question.
I don't have any example packages that use Redactor in a dashboard single page.
                I don't have any example packages that use Redactor in a dashboard single page.
                        I have found the solution to this...
I placed the jquery for the redactor inside the following and it works ok.
On to the next issue...
                I placed the jquery for the redactor inside the following and it works ok.
(function($) { $(document).ready(function () { ... ... }); })(jQuery);
On to the next issue...
                        This is great, and I have got it working on the main site, but I am trying to configure a dashboard form that will require Redactor. I have following the same instructions but cannot get it to work.
Any suggestions?
                Any suggestions?
                        This is great, and I have got it working on the main site, but I am trying to configure a dashboard form that will require Redactor. I have following the same instructions but cannot get it to work.
Any suggestions?
                Any suggestions?
                        This is great, and I have got it working on the main site, but I am trying to configure a dashboard form that will require Redactor. I have following the same instructions but cannot get it to work.
Any suggestions?
                Any suggestions?
                    
I just figured it out this morning. Here is a quick run down.
in controller.php
in your form
<script> var CCM_EDITOR_SECURITY_TOKEN = "<?php echo Loader::helper('validation/token')->generate('editor')?>"; $('#redactor-content').redactor({ minHeight: '130', 'concrete5': { filemanager: <?php echo $fp->canAccessFileManager()?>, sitemap: <?php echo $tp->canAccessSitemap()?>, lightbox: true }, 'plugins': [ 'fontfamily','fontsize','fontcolor','concrete5' ] }); </script>in view.php
in db.xml