Any idea how to do that?
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
09:00 - 17:00 Europe/London (BST)
Please create a new Ticket and we will get back to you as soon as we can.
#108760 Replace textarea in a form with JCE pro
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 Friday, 24 September 2021 16:37 BST
Monday, 06 September 2021 09:02 BST
Any idea how to do that?
Monday, 06 September 2021 10:21 BST
$editor = JFactory::getConfig()->get('editor');
$instance = JEditor::getInstance($editor);
$instance->display('my_content', $content, 500, '100%', 20, 20);
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Tuesday, 07 September 2021 06:29 BST
thanks for your suggestion but as a kind of novice without extensive knowledge in php I need some more details on where in the php or html to place this code.
In my scenario the visitor of our website opens a page with a form. The form contains a textarea and I want this textarea to be replaced with the editor so the client can add formatted text and paste screenshots.
My html looks like this:
<textarea cols="80" rows="12" name="memo" id="txa01" style="width: auto"></textarea>
Tuesday, 07 September 2021 10:52 BST
In my scenario the visitor of our website opens a page with a form. The form contains a textarea and I want this textarea to be replaced with the editor so the client can add formatted text and paste screenshots.
How are you creating the form? Is it form HTML added directly to an article?
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Tuesday, 07 September 2021 14:25 BST
Wednesday, 08 September 2021 10:19 BST
<textarea cols="80" rows="12" name="memo" id="txa01" style="width: auto" class="custom-editor"></textarea>
When the page loads, the textarea will be converted into the default or user assigned Joomla Editor, ie: Tinymce or JCE. Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Monday, 13 September 2021 05:38 BST
I activated it:
and I changed my code:
<tr>
<td>Memo:</td>
<td colspan="3" ><textarea cols="80" rows="12" name="memo" id="txa1" style="width: auto" class="wysiwyg-editor"></textarea></td>
</tr>
But the result is still a standard <textarea>
What am I doing wrong?
Friday, 17 September 2021 16:57 BST
Is JCE assigned as the default editor in the Joomla Global Configuration?
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Monday, 20 September 2021 06:31 BST
The <textarea> is used for logged in and not logged in users.
Tuesday, 21 September 2021 11:20 BST
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Thursday, 23 September 2021 16:30 BST
It is fixed and appears to be working OK on your site.
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Friday, 24 September 2021 05:21 BST
it works fine when being logged in as admin-user. But unfortunately it does not work when being logged in as normal user. I have created another username for you, so you can check.
Thanks
Florian
Friday, 24 September 2021 16:37 BST
it works fine when being logged in as admin-user. But unfortunately it does not work when being logged in as normal user.
You need an editor profile that is assigned to this user group. The only editor profile that you currently have assigned to a usergroup is assigned to the Super User, which is why you don't see an editor loaded for a "normal user".
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Please wait
Your post is being submitted…