Editor styles are missing

Hello my friends

I have an small issue with my component. Every time i post a question or one answer the styles are missing, example if i post a link, the link disapear, if i post 3 paragraphs they disapear once i send the answer or question... all the post are in the middle of one DIV code... how can i solve this?

Thank you very much!
Category: Community Answers 3 years ago
gabbo
Asked 3 years ago

It is really tough task to redo things to such old version. But here is small explanation to the fixes done.

In models/answers.php find all the lines with below text
JREQUEST_ALLOWRAW

And change that text to
JREQUEST_ALLOWHTML


And also find and remove all lines that call "filterData" function, ex.
CommunityAnswersHelper::filterData(...........)
Maverick
Answered 3 years ago
Maverick

This issue was seen in few j1.7 powered websites which has editor type as "Default". It is fixed in latest version v1.8.3.
Maverick
Answered 3 years ago
Maverick

Hi Maverick

I understand, the problem is that i have the version 1.7.3... and Joomla 2.5.3... there is any way to solve the bug without upgrade my component?

Thank you very much!

Gabriel
gabbo
Answered 3 years ago
gabbo

Hi Maverick

Thank you very much for your help... i already modify the lines you told me and it works just in the answers. Now the problem is present just in the Question, this is a link:

Test 1

I hope you can help me... Thanks a lot for your time.
gabbo
Answered 3 years ago
gabbo

Ohh i almost forget... One last question... The second code :
CommunityAnswersHelper::filterData


I just found 2 lines in the file models/answers.php, but in another file inside the folder "controllers" i found another one too, i have to do the same operation?

Plus, i just delete the line and not the lines bellow... that´s fine?

Thank you very much again!

Gabriel
gabbo
Answered 3 years ago
gabbo