Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8092939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:23:41+00:00 2026-06-05T20:23:41+00:00

I have a question about implementing WYSIWYG editors into CakePHP. I’m developing an intranet

  • 0

I have a question about implementing WYSIWYG editors into CakePHP. I’m developing an intranet for employees where I work. I’m currently using CakePHP 1.3. I found this repository

https://github.com/josegonzalez/cakephp-wysiwyg-helper/tree/1.3

which contains several different WYSIWYG editors bundled together. I followed the instructions, and made sure I downloaded the JS distribution of NicEdit (along with TinyMCE, after I struggled with NicEdit, still neither of which works).

I run

echo $this->Nicedit->input('content');

in my view. When I load the page in my browser the input box appears properly, however there is no toolbar for text editing. Upon inspection of the scripts when the page runs, under this block of code

<div class="input textarea required"><label for="AnnouncementContent">Content</label><textarea name="data[Announcement][content]" cols="30" rows="6" id="AnnouncementContent" ></textarea></div><script type="text/javascript">
        var area1;
        function makePanel() {
            area1 = new nicEditor({fullPanel : true}).panelInstance(
                'AnnouncementContent',
                {hasPanel : true}
            );
        }
        bkLib.onDomLoaded(function() { makePanel(); });</script>    

I receive this error: Uncaught ReferenceError: bkLib is not defined

I’ve spent hours trying to fix this issue to no avail. Does anyone have some insight on approaching this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T20:23:42+00:00Added an answer on June 5, 2026 at 8:23 pm

    Here’s how I set up TinyMCE in a recent 1.3 project, without using that plugin:

    From my view that used the TinyMCE editor:

    //tell template to include the tinyMCE javascript file
    <?php  
    if(isset($javascript)): 
        echo $javascript->link('tiny_mce/tiny_mce.js'); 
    endif; 
    ?>
    
    //Build the form I need
    <div class="responses form">
    <?php echo $this->Form->create(null, array('controller' => 'Responses', 'action' => 'add')); ?>
        <fieldset>
            <legend>Add Response</legend>
        <?php
            echo $form->hidden('listing_id', array('value' => $tempid));
            echo $this->Form->input('content');
        ?>
        </fieldset>
    <?php echo $this->Form->end(__('Submit', true));?>
    </div>
    
    //set up the editor
    <script type="text/javascript"> 
        tinyMCE.init({ 
            theme : "simple", 
            mode : "textareas", 
            convert_urls : false 
        });
    </script>
    

    I know this isn’t really answering your question if you really want to use that plugin, but if you’re okay with just using TinyMCE you can set it up really easily this way. The best part is, it autoconverts to HTML so you can just save to your database. When you retrieve the data from your database, it’ll be in the properly formatted html, so you can easily display it.

    You can also be more specific in the init method in terms of which text area you want it to use. I had trouble getting it to only activate on a specific text area, but you might have different luck. The documentation is here. You can also turn on more advanced themes. The documentation describes the options.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question about implementing OnClickListeners for developing with the ADT. I'm unsure
I have a question about the Singleton Pattern and MEF. I'm new in implementing
I have a question about interface and class implementing interface. This is my code:
I have a question about implementing the new UI within a .net website that
I have a question about Hibernate. I'm using 3.1.3 version and I have two
I have a question about the merits of two different approaches to implementing a
i am implementing my first GWT application currently, i just have a quick question
I have a fairly straightforward question about using droplets for my mac application. My
I have a question about implementing a few specific behaviors in NSTableViews/NSOutlineViews. WHAT I'M
I have a basic question about implementing a Entity code first one to many

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.