- Posts: 3
- Thank you received: 0
Editor in custom fields not working
- meroving
- Topic Author
- Offline
- New Member
-
Less
More
11 years 6 months ago - 11 years 6 months ago #1670
by meroving
Editor in custom fields not working was created by meroving
Hello,
I would like to use K2 custom fields textarea with editors. It is working well without this (btw incredible great) plugin.
How could i use this feature with mefgfork2 plugin?
I tried to edit plugins / k2 / mefgfork2 / mefgfork2.php at line 550 (cca.). I search below code:
Change with this:
But this is killed my front-end editor page.
Have you got any tips to achieve this script working?
Regards, L
I would like to use K2 custom fields textarea with editors. It is working well without this (btw incredible great) plugin.
How could i use this feature with mefgfork2 plugin?
I tried to edit plugins / k2 / mefgfork2 / mefgfork2.php at line 550 (cca.). I search below code:
Code:
$output = '<textarea name="K2ExtraField_'.$extraField->id.'" id="K2ExtraField_'.$extraField->id.'" rows="10" cols="40" '.$attributes.'>'.htmlspecialchars($active[0], ENT_QUOTES, 'UTF-8').'</textarea>';
Change with this:
Code:
if ($extraField->id == 229) // using custom field's editor attribute could be more elegant
{
$editor =& JFactory::getEditor();
$output = $editor->display("K2ExtraField_".$extraField->id."", $active[0], '550', '400', '60', '20', false);
}
else $output = '<textarea name="K2ExtraField_'.$extraField->id.'" id="K2ExtraField_'.$extraField->id.'" rows="10" cols="40" '.$attributes.'>'.htmlspecialchars($active[0], ENT_QUOTES, 'UTF-8').'</textarea>';
But this is killed my front-end editor page.
Have you got any tips to achieve this script working?
Regards, L
Last edit: 11 years 6 months ago by meroving. Reason: try smthing in code
Please Log in or Create an account to join the conversation.
- jeffreyliu77
- Offline
- Junior Member
-
Less
More
- Posts: 20
- Thank you received: 0
11 years 6 months ago #1672
by jeffreyliu77
Replied by jeffreyliu77 on topic Editor in custom fields not working
calling editor nestly? mefg already inside editor.
Please Log in or Create an account to join the conversation.
- mmmaug1977
-
- Offline
- Moderator
-
11 years 6 months ago #1673
by mmmaug1977
Replied by mmmaug1977 on topic Editor in custom fields not working
Please read this post:
joomreem.com/forum/28-bugs-and-usability...d-line-876.html#1658
joomreem.com/forum/28-bugs-and-usability...d-line-876.html#1658
Please Log in or Create an account to join the conversation.
- meroving
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
11 years 6 months ago #1675
by meroving
Replied by meroving on topic Editor in custom fields not working
Hello,
In my mefgfork2.php it is not working because of it doesn't contain that line:
$K2("#extraFieldsContainer").html(<?php echo $db->quote(MefgHelper::displayGroupFields($item->catid, $item->id, $pluginParams)); ?>);
I tried to see here: plugins / k2 / mefgfork2 / mefgfork2.php
In my mefgfork2.php it is not working because of it doesn't contain that line:
$K2("#extraFieldsContainer").html(<?php echo $db->quote(MefgHelper::displayGroupFields($item->catid, $item->id, $pluginParams)); ?>);
I tried to see here: plugins / k2 / mefgfork2 / mefgfork2.php
Please Log in or Create an account to join the conversation.
- meroving
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
11 years 5 months ago #1681
by meroving
Replied by meroving on topic Editor in custom fields not working
Hi,
I bought the new version, but with code changes still no working extra fields textarea editors
Any tips?
Regards, L
I bought the new version, but with code changes still no working extra fields textarea editors
Any tips?
Regards, L
Please Log in or Create an account to join the conversation.