user-generated rich text on coldfusion page

2010-02-10 Thread Craig Buckley

My (non-html-writing) customer wants to use ms-word to generate a portion of a 
coldfusion page.  The idea is they can generate a file (.doc or .rtf or 
whatever) that I include on the page.  I've looked at various tags including 
cfcontent, cfdocument, cfinclude to try to find out how to include the rich 
text from a word document into the page seamlessly.  I've tried saving the word 
doc as a doc, xps and rtf to no avail.  They want to bullet, change font color, 
font size etc so a simple entry of text into a database won't work.  Any 
Suggestions? 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330515
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: user-generated rich text on coldfusion page

2010-02-10 Thread Ian Skinner

On 2/10/2010 7:13 AM, Craig Buckley wrote:
 Any Suggestions?


Well if you want a browser that renders HTML to understand the 
formatting from these documents, then these documents should probably be 
rendered as HTML.  Have you tried the save as HTML option that is 
included in the Word program.

Most people would deride the HTML the program produces, in fact many 
tools, like Dreamweaver contain Word HTML Clean up functions, but it 
should work.

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330516
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: user-generated rich text on coldfusion page

2010-02-10 Thread Gerald Guido

The new version of CKeditor 3.x is pretty nice. It was FCKEditor. Adobe uses
FCK 2.x in it's rich text verrsion of cftexarea.

http://ckeditor.com/

It has a feature Paste from Word. I have not tried it but it might be
worth looking at.

As a word of warning. Inline wysiwyg editors can create some pretty dodgy
html and repeated formating can create some pretty horrific HTML. I have not
been very happy with the results at times but for simple formatting it does
the trick.

Ian has a good point as well. There are apps out there that can clean up
Word's HTML, which is ugly as sin.

HTH

G!

On Wed, Feb 10, 2010 at 10:13 AM, Craig Buckley ceb...@aol.com wrote:


 My (non-html-writing) customer wants to use ms-word to generate a portion
 of a coldfusion page.  The idea is they can generate a file (.doc or .rtf or
 whatever) that I include on the page.  I've looked at various tags including
 cfcontent, cfdocument, cfinclude to try to find out how to include the rich
 text from a word document into the page seamlessly.  I've tried saving the
 word doc as a doc, xps and rtf to no avail.  They want to bullet, change
 font color, font size etc so a simple entry of text into a database won't
 work.  Any Suggestions?

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330517
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: user-generated rich text on coldfusion page

2010-02-10 Thread Eric Roberts

I would highly recommend using the dreamweaver or other cleanup util as the
code that word produces is exceedingly bloated.  I haven't tried it
recently, so MS may have cleaned it up a bit, but I remember a few years
back getting lazy and using that to put my resume in an html format for my
consulting company website and it produced a document that was several MB as
it has so much crap in it.  I ran the cleaner and it brought it down to the
kb range.

Eric

-Original Message-
From: Ian Skinner [mailto:h...@ilsweb.com] 
Sent: Wednesday, February 10, 2010 9:27 AM
To: cf-talk
Subject: Re: user-generated rich text on coldfusion page


On 2/10/2010 7:13 AM, Craig Buckley wrote:
 Any Suggestions?


Well if you want a browser that renders HTML to understand the 
formatting from these documents, then these documents should probably be 
rendered as HTML.  Have you tried the save as HTML option that is 
included in the Word program.

Most people would deride the HTML the program produces, in fact many 
tools, like Dreamweaver contain Word HTML Clean up functions, but it 
should work.



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330521
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: user-generated rich text on coldfusion page

2010-02-10 Thread Casey Dougall

On Wed, Feb 10, 2010 at 10:45 AM, Eric Roberts 
ow...@threeravensconsulting.com wrote:


 I would highly recommend using the dreamweaver or other cleanup util as the
 code that word produces is exceedingly bloated.  I haven't tried it
 recently, so MS may have cleaned it up a bit, but I remember a few years
 back getting lazy and using that to put my resume in an html format for my
 consulting company website and it produced a document that was several MB
 as
 it has so much crap in it.  I ran the cleaner and it brought it down to the
 kb range.

 Eric



Dreamweaver hasn't been catching word 2007 formatting issues with
smartquotes, odd things that happen with hyphans and also double spaces
after periods... It's a straight pain


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330522
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: user-generated rich text on coldfusion page

2010-02-10 Thread Tony Bentley

I also suggest the 'Paste from Word' feature in FCKEditor. It is perhaps the 
best method of moving content from Word to Web. The only issue is Word can do 
much more then text so if the user tries to insert a photo and expects the 
graphics to automatically move into the editor, that will cause problems. There 
needs to be some level of understanding to the limitations of Word to HTML. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330526
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: user-generated rich text on coldfusion page

2010-02-10 Thread Eric Nicholas Sweeney

I use FCK Editor (now ckeditor) in my CMS - and I have had very good results
with it - as far as my customers being able to edit code. (And myself for
that matter)

But yeah - make sure they use the paste from word button - or the code
they paste in will be nasty. Paste from word does a pretty good job of only
pasting the text and not all the extra word garbage...

It also has a pretty good file manager plugin so your users can manage the
pictures on the server...

This will probably be your biggest hurdle - - your users will think they can
cut and paste the graphics from Word into the Editor - and it may take a bit
of education/hand holding to explain how it works. (They will also think
they can upload pics directly from their digital camera and have them show
up sized as well... But that is  a different matter altogether.)

- Nick



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330528
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4