Skip to main content
renamed to clarify control panel instead of the web hosting management software cpanel
Link
Jeremy Gimbel
  • 4.6k
  • 1
  • 19
  • 25

Load RTE into custom module for use in cpanelcontrol panel

Tweeted twitter.com/#!/StackExpression/status/394761257280356352
Source Link
4razmus
  • 231
  • 1
  • 8

Load RTE into custom module for use in cpanel

is there a way to load the RTE javascript in a module for the cpanel?

I have tried the following, but keep getting an error when refreshing the page:

ee()->load->library(array('javascript', 'rte_lib'));

ee()->javascript->output(
  ee()->rte_lib->build_js(0, '.WysiHat-field', NULL, TRUE)
);

error: Unable to load the requested class: rte_lib

any ideas?

thanks in advance.