Jump to content

Override js file of tinymce ?


Recommended Posts

Hi All,

 

I would like to improve the tiny editor but for my custom module only.

So I don't want to modify the native PS file tinymce.inc.js

 

The I tried several solution without success :

 

- Copy of this file in my module js folder and call it with setMedia(). Unfortunatelly my file is loaded before the native one, so no effect.

- Copy the code of file in admin/js/mymodule/mymodule.js : no loaded at all.

 

As I don't use a form.tpl in my module but only PS helpers form, I can only do that in the $fields_form array :

				array(
					'type' => 'textarea',
					'label' => $this->l('Answer:'),
					'tinymce' => true,
					'required' => true,
					'name' => 'answer_auto',
					'lang' => 0,
					'cols' => 50,
					'rows' => 10,
					'class' => 'rte',
					'autoload_rte' => true
					
				),

But I cannot modify the editor's buttons and plugins.

How can I do that ? 

I can't mix PS helpers and a form.tpl where I can add JS code to modify editor...

 

 

 

Link to comment
Share on other sites

  • 9 months later...

it is not possible to override this part of the core,

libraries loaded in such way aren't available to override

so the only one thing is core modification that will add support of such override.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...