SOLVED: HTML stripped from document description

Open community questions relating to DOCman.

Moderator: Community Moderators

SOLVED: HTML stripped from document description

Postby vdrover on Sat Mar 22, 2008 5:29 am

In the main site template, I have created a new class to highlight certain parts of my text. This class is available in my WYSIWYG editor, and is in use as expected throughout the site.

I have also used this class in a document description in DocMan. However, the class is not applied to the text. The text is plainly styled like the rest of the text in the description, almost as if the style information had been stripped away. What's more, when i edit the document on the frontend, the style attributes from this class are displayed just fine in the editor.

I tried adding the styles to the docman css file, but this didn't help.

Why would the style attributes not be respected in the document description?

NOTE: Edited title for clarity
Last edited by vdrover on Mon Mar 24, 2008 3:32 am, edited 1 time in total.
vdrover
 
Posts: 12
Joined: Wed Mar 19, 2008 9:34 pm

Re: HTML stripped from document description temporarily

Postby vdrover on Sat Mar 22, 2008 8:55 pm

I've done some more testing and searching and have some additional information:

    1. I can now confirm that when the document is displayed on the frontend, all the HTML has been stripped from the document descritpion.
    2. When the document is edited, the original HTML still remains. I confirmed this by checking the database entry for the documents. Indeed, the HTML is present.
    3. Category descriptions display HTML just fine, as would be expected.

Two other unsolved topics may be related to this issue also:

I added this issue to the tracker, but an interim fix would be great.
vdrover
 
Posts: 12
Joined: Wed Mar 19, 2008 9:34 pm

Re: HTML stripped from document description temporarily

Postby cybergurk on Sun Mar 23, 2008 9:50 pm

Hello,
Sry for my bad englisch...

administrator/classes/DOCMAN_models.class.php line 215 delete ?

$this->objFormatData->dmdescription =
mosHTML::cleanText($objDBDoc->dmdescription);

and works ;)
cybergurk
 
Posts: 1
Joined: Sun Mar 23, 2008 9:45 pm

Re: SOLVED: HTML stripped from document description

Postby vdrover on Tue May 06, 2008 5:40 pm

File location is actually <JOOMLA_ROOT>/administrator/components/com_docman/classes/
vdrover
 
Posts: 12
Joined: Wed Mar 19, 2008 9:34 pm

Re: SOLVED: HTML stripped from document description

Postby katrin on Wed Sep 10, 2008 4:45 pm

Hi,

Unfortunately this solution does not work in Joomla 1.5.6
When I comment out line 215 the HTML returns but the page is a mess :(

Any Idea !
katrin
 
Posts: 2
Joined: Wed Sep 10, 2008 4:40 pm
DOCman version: rc3
Joomla! version: 1.5.6

Re: SOLVED: HTML stripped from document description

Postby Krisstoffer on Wed Sep 10, 2008 5:36 pm

see the known bugs viewtopic.php?f=14&t=1070
Please do not PM me with support requests, use the forums
User avatar
Krisstoffer
Staff
 
Posts: 4598
Joined: Thu Oct 11, 2007 12:25 am
Location: Earth
DOCman version: 1.5
Joomla! version: 1.5.15
PHP version: 5.2
MySQL version: 5.0

Re: SOLVED: HTML stripped from document description

Postby byted on Tue Oct 14, 2008 12:58 pm

katrin wrote:Hi,

Unfortunately this solution does not work in Joomla 1.5.6
When I comment out line 215 the HTML returns but the page is a mess :(

Any Idea !


I use Joomla 1.5.7 in legacy mode. When I commented this line, page was messed up, but only if: 1. there was at least one picture in description, 2. tooltip icon was turned on in themes configuration ! Somehow those two pictures interfere, just turn the tooltip icon off and everything should be fine.

Ted
byted
 
Posts: 1
Joined: Tue Oct 14, 2008 12:53 pm
DOCman version: 1.4.0 RC3
Joomla! version: 1.5.7


Return to General discussion

Who is online

Users browsing this forum: No registered users and 2 guests