dotProject Forums

Go Back   dotProject Forums > USAGE, TIPS AND HINTS > General Questions
Register FAQTop Posters Members List Calendar Search Today's Posts Resend Activation Email Mark Forums Read
dotProject Documentation dotProject FAQ Bugs & Feature Requests Language Packs & Themes Download dotProject

General Questions Use this forum to ask questions or provide suggestions about general usage and how to's within the core dotProject modules. These modules include: Calendar, Tasks and Projects, Files, Contacts, Permissions, Forums, User Administration, System Administration etc.

Reply
 
Thread Tools Display Modes
  #1  
Old 21-04-05, 11:05 AM
racerx's Avatar
racerx racerx is offline
Valued Users
Return Visitor
dotProject Version:
php Version:
MySQL Version:
Operating System Version:
Browser:
 
Join Date: 12-08-04
Posts: 10
Default Carriage Return in Task Descriptions INOP

It seems that in V2 the Task Description field no longer allows you to create carriage returns or line breaks for ease of reading.
They are deleted when you save the task each time.
They do however work in the logs.

I also tried shift enter with no luck as well.

Reply With Quote
  #2  
Old 27-04-05, 08:31 AM
Fawks Fawks is offline
Junior Member
New Participant
dotProject Version:
php Version:
MySQL Version:
Operating System Version:
Browser:
 
Join Date: 26-04-05
Posts: 1
Default Re: Carriage Return in Task Descriptions INOP

This is a big issue for me as well and am hoping someone here has a quick fix for it. Our sales people are becoming extremely frustrated with huge chunks of text in the description area that are near impossible to read in a coherent manner.

I've tried what I know in order to try and resolve this problem but have been unsuccessful thus far. Can anyone help?

Reply With Quote
  #3  
Old 01-05-05, 03:05 PM
webpros webpros is offline
Valued Users
Frequent Visitor
dotProject Version:
php Version:
MySQL Version:
Operating System Version:
Browser:
 
Join Date: 28-04-05
Posts: 15
Default Re: Carriage Return in Task Descriptions INOP

I also was going NUTS on this one. The only solution I know of right now is to use the FireFox browser. Works perfectly. I now use Firefox solely for DP and it actually works out quite well.

Hopefully someday there will be a full htmlarea style word processor.. Apparently there are some security concerns with html tags.

But with FireFox at least there is now a way to do CRs.

Reply With Quote
  #4  
Old 02-05-05, 02:11 PM
webpros webpros is offline
Valued Users
Frequent Visitor
dotProject Version:
php Version:
MySQL Version:
Operating System Version:
Browser:
 
Join Date: 28-04-05
Posts: 15
Default Re: Carriage Return in Task Descriptions INOP

Found another fix. In the includes/db_connect.php file are three lines with "strip_tags". DP is using a smarty plugin that strips any html tags before they go to the database. I know they are doing this for security reasons, but I'm not worried about it as I trust everyone who is logging in to our DP.

So the simple solution is to delete those three references. You can insert full html code, but still no carriage returns. But if you use FireFox in conjunction with this change you have the best of both worlds.

Here is an example of how the line should look.. This is line #227 in db_connect.php and how it should be corrected:

(Line 227 Old code) $values[] = "'" . db_escape(strip_tags( $v )) . "'";
(Line 227 New Code) $values[] = "'" . db_escape( $v ) . "'";


Do the same thing on lines 261 and 307

Reply With Quote
  #5  
Old 03-05-05, 02:30 AM
pedroa's Avatar
pedroa pedroa is offline
Valued Users
Utter Fanatic
dotProject Version:
php Version:
MySQL Version:
Operating System Version:
Browser:
 
Join Date: 18-01-05
Posts: 3,554
Default Re: Carriage Return in Task Descriptions INOP

Hi,

I see there are 3 discussions about this same thing in the forums.

By the way,

What is the preferred WYSIWYG of you guys?

1) HTMLArea
2) FCKEditor
3) TinyMCE
4) Xinha

I like them all but FCKEditor best.

Adapting any of them to dP would be quite easy, since some of them attach themselves to textarea controls. Of course some knowledge of how and where the data is pulled and pushed is needed first...
Would like to hear from you all.

Pedro A.
__________________
Peace!!!
Reply With Quote
  #6  
Old 03-05-05, 02:25 PM
webpros webpros is offline
Valued Users
Frequent Visitor
dotProject Version:
php Version:
MySQL Version:
Operating System Version:
Browser:
 
Join Date: 28-04-05
Posts: 15
Default Re: Carriage Return in Task Descriptions INOP

Our programmer has started working on integrating FCKeditor. He had time to mess with it for about an hour yesterday and made some pretty good progress. I'll be sure to make a post when and if it's working.

David Faria
Website Professionals

Reply With Quote
  #7  
Old 01-06-05, 01:21 AM
daixtech.com daixtech.com is offline
Valued Users
Frequent Visitor
dotProject Version:
php Version:
MySQL Version:
Operating System Version:
Browser:
 
Join Date: 01-06-05
Posts: 17
Default Re: Carriage Return in Task Descriptions INOP

I tried to implement FCK EDITOR but the text area replacement is not working because the description is submitted using a weird java script because of the special TABS display.

FCK EDITOR is displayed correclty, but when I hit submit the description filed is not getting upadated


If any of you got a solution on this I am very interested. I really need to have an html editor in the task description if not it become useless for me.

I will also try to implement the html editor in the task logs.

My users are not very geeky so they need more text formatting

Philippe.

Reply With Quote
  #8  
Old 01-06-05, 07:57 PM
webpros webpros is offline
Valued Users
Frequent Visitor
dotProject Version:
php Version:
MySQL Version:
Operating System Version:
Browser:
 
Join Date: 28-04-05
Posts: 15
Default Re: Carriage Return in Task Descriptions INOP

We are having the same prob with fck editor. Would like to know when and if someone figures something out...

Reply With Quote
  #9  
Old 03-06-05, 11:18 AM
daixtech.com daixtech.com is offline
Valued Users
Frequent Visitor
dotProject Version:
php Version:
MySQL Version:
Operating System Version:
Browser:
 
Join Date: 01-06-05
Posts: 17
Default Re: Carriage Return in Task Descriptions INOP

We are trying without success to implement FCK EDITOR.
Without the possibility to create formatted html in the task definition, the tool itself loose a lot of its power... It is really hard to explain a task without clean text editor.

I would even say that most of the time even the text formatting is a bti limited to really explain well a task. Attaching document to a task and /or a Log is a must.

Philippe

Reply With Quote
  #10  
Old 03-06-05, 06:28 PM
pedroa's Avatar
pedroa pedroa is offline
Valued Users
Utter Fanatic
dotProject Version:
php Version:
MySQL Version:
Operating System Version:
Browser:
 
Join Date: 18-01-05
Posts: 3,554
Default Re: Carriage Return in Task Descriptions INOP

Hi,

I Have integrated FCKEditor in the Task Description, and let me tell that was not easy, took me a no sleep night.

I am having some issues for the new tasks and with the save task, though.

To say the truth I couldn't find where the heck the tag named task_description gets evaluated, so I had to brute force the thing and have the FCKEditor save button save the description, that's why I can't get the addedit.php save button to work properly, and if the task does not exist when you use FCKEditor save, there will be no task_id and therefore my procedure doesn't work.

Anyway, If I can't figure out a solution, I will be posting here how you can make it work like I said before, and maybe with my step someone here could help into the next step.

If this gets cracked down, then the other module descriptions will be a piece of cake.

This is the hardest place to start an FCKEditor integration, I believe that on the other modules things will be easier, since most of then don't have this subForms js approach.

By the way I am trying this with dP 2.0.1 and FCKEditor 2 FC.

Pedro A.
__________________
Peace!!!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +10. The time now is 07:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.