You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#107259 Using JCE in a module

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Monday, 29 March 2021 16:47 BST

alanorr
I'm developing a module for 3.x and I'd like to include an editor in the front end.

I've tried:

jimport( 'joomla.html.editor' );
$editor =& JEditor::getInstance();
echo $editor->display("desc", "my text", "600", "400", "80", "15",1);

which shows the text area but no buttons. It throws a Uncaught ReferenceError: Joomla is not defined error.

Is it possible to use the editor in a module or will I need to use one of the other free JQuery editors instead.

thanks

Ryan
You should be able to load the default Tinymce editor with the code you are using. Does it load if you set it as the default editor?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

alanorr
HI I tried the tinymce but it didn't work. I'm using Joomla 3.9.25 with php 7.3.27 and mysql 5.5.68-MariaDB

Ryan
https://joomla.stackexchange.com/questions/3840/how-to-add-a-wysiwyg-editor-to-my-module

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.