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 8464609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:47:59+00:00 2026-06-10T14:47:59+00:00

I have created a custom module in magento which contains a textbox and an

  • 0

I have created a custom module in magento which contains a textbox and an editor.
But when I try to upload image or video using editor it is displaying me the error like.

error: error in [unknown object].fireEvent():

event name: open_browser_callback

error message: MediabrowserUtility is not defined

Because of this I am unable to upload any image or video in my module.

How to solve this problem?
Please Help me..

  • 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-10T14:48:00+00:00Added an answer on June 10, 2026 at 2:48 pm

    In your config.xml you have:

    <events>
      <cms_wysiwyg_config_prepare>
        <observers>
          <variable_observer>
            <class>core/variable_observer</class>
            <method>prepareWysiwygPluginConfig</method>
          </variable_observer>
        </observers>
      </cms_wysiwyg_config_prepare>
    </events>
    

    In Block/Adminhtml/WHATEVER/Edit.php

    protected function _prepareLayout() {
        parent::_prepareLayout();
        if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled()) {
            $this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);
            $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
        }
    }
    

    Then in the top of Block/Adminhtml/WHATEVER/Edit/Tab/Form.php

         protected function _prepareForm() {
                $form = new Varien_Data_Form();
                $this->setForm($form);
                $wysiwygConfig = Mage::getSingleton('cms/wysiwyg_config')->getConfig(array('add_variables' => false,
             'add_widgets' => false,
              'add_images' => true,
              'files_browser_window_url' => Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg_images/index'),
              'files_browser_window_width' => (int) Mage::getConfig()->getNode('adminhtml/cms/browser/window_width'),
              'files_browser_window_height'=> (int) Mage::getConfig()->getNode('adminhtml/cms/browser/window_height')
             ));
    

    Further down:

                $fieldset->addField('not-called-content', 'editor', array(
                                        'name'      => 'not-called-content',
                                        'label'     => Mage::helper('WHATEVER')->__('Content'),
                                        'title'     => Mage::helper('WHATEVER')->__('Content'),
                                        'style'     => 'width:550px; height:300px;',
                                        'required'  => false,
                                        'config'    => $wysiwygConfig,
                                        'wysiwyg'   => true
                                        ));
    

    Standard gotcha: don’t call your wysiwyg area ‘content’. That is used already by Magento for the form id.

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

Sidebar

Related Questions

I have created a custom Magento module which extends the core sales order functionality
I have a module in which I created a custom page with controller and
I have created custom cell in which there are n number of image views.
I'm trying to create a custom module using Magento's EAV structure and have been
I am creating a custom module in magento.I have created block class and phtml
I have created a custom module and am using hook_block to programmatically create some
I have created a custom module which displays a tab and a section in
I have created a new custom module and DB table for magento. What is
We have already created custom module for searching but pagination not working. we have
I am using apachesolr module in drupal I have created a custom facet field

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.