Keyword

WYSIWYG extra field editor

  • Urbane Media
  • Urbane Media's Avatar Topic Author
  • Offline
  • New Member
More
14 years 7 months ago #73112 by Urbane Media
WYSIWYG extra field editor was created by Urbane Media
I have been trawling through the forum to find away of using HTML within the extra fields and found this post

k2community.joomlaworks.gr/forum/topics/extra-wysiwyg-fields

in which

FaïWoueb said:I found a solution !
1/ Edit the administrator/components/com_k2/models/extrafield.php file
Line 164 :
Replace :
$output='';
By :
$editor =& JFactory::getEditor();
$output = $editor->display("K2ExtraField_".$extraField->id."", $active, '550', '400', '60', '20', false);

2/ Edit the administrator/components/com_k2/models/item.php file
Line 462 :
Replace :
$variables = JRequest::get('post');
By :
$variables = JRequest::get('post',JREQUEST_ALLOWRAW);

... and that's all folks.


I've changed the line within extrafield.php and I get the WYSIWYG editor come up, but I cannot find any reference to $variables = JRequest::get('post'); on line 462 in item.php. I've searched through the entire package and the only place I can find this is within

/plugins/plg_k2_system/k2.php

however I cannot find this file in the installed version on my server. Can anyone help as it is not outputing the HTML formatting that I've included or is there another way around this?

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum