Keyword

Allow HTML code in textarea (extrafield)

  • Mathias Pedersen
  • Mathias Pedersen's Avatar Topic Author
  • Offline
  • New Member
More
15 years 4 months ago #69724 by Mathias Pedersen
Allow HTML code in textarea (extrafield) was created by Mathias Pedersen
Hi!

I'm using the K2 component, and have added an extraField as a textarea. But I can't figure out how to allow html code in this area when clicking "use" or "save" (it disappears). I found out that this can be fixed by adding something like

JRequest::getVar('address', 'null', 'post', 'mask', 'JREQUEST_ALLOWRAW');

to the code, but don't figure out where to put this. I think it is in the /administrator/components/com_k2/tables/k2extrafield.php which looks like this: www.copypastecode.com/7670/

Can anyone help me implement the code here, eventually give me another solution for making html code allowed in the text area/extrafield?

Thanks!

- Mathias

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


Powered by Kunena Forum