• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 268
  • Last Modified:

ms word to dreamweaver

everytime i want to copy and paste text from
ms word to dreamweaver , the document structure disappears and gives me one line of text.
 
how can i fix that besides doing it manually?
0
roylam
Asked:
roylam
  • 4
  • 3
1 Solution
 
chewymonCommented:
You can't really.  Word is a word processing app that uses paragraph, line breaks, spacing,  and other types of markup that Dreamweaver strips out as they are not HTML tags.  Any text that is meant for the web should be done in a text format like NotePad or WordPad.  This is the reason you cannot create an html page in word and espect it to show properly in a browser.

The proper way to do it is to export the document as an html (or web) file and paste that into DreamWeaver.  The command might be "Publish to Web".  That is what Corel uses.  Anyway, it converts the word file to an html compliant form.
0
 
roylamAuthor Commented:
i had tried a similar command "save as web" before in ms word.  but this gave me headache.  it included lots of style sheet info.  which is completely hopeless when i tried to edit the content in dreamweaver.

any suggestion?
0
 
chewymonCommented:
The other thing you might try if you are writing the document, is to just write it in Dreamweaver.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
mblaseCommented:
Dreamweaver's "Clean Up HTML" and "Apply Source Formatting" commands ought to clean up most of MS Word's yucky non-standard HTML and styles. Selecting all the text and setting it to default font face, default size, and default color should clean up the rest of the junk.

0
 
roylamAuthor Commented:
mblase,
i like your approach to my problem.  it is getting there.  however, there is still problem for me to change the font face after the i remove 'most' of the junk.  somehow, couldn't remove the <div>, <p style=...>, <p class=...> tags.  

0
 
roylamAuthor Commented:
i don't mind lossing any other format within my document as long as i have got the structure (eg. paragraph, table, list etc).

basically, i'm looking for some solution to transport the "TEXT" from the ms word to the new html format.  i don't mind using the default font.

0
 
chewymonCommented:
Here is a utility called RTFtoHTML.

http://www.sunpack.com/RTF/


It might do what you need.  The word document is sved as a .rtf file which is then converted to html.  One step more than you wanted, but if the result is right, it shouldn't take that long.  If you have a lot of docs to convert, you might even build a macro to help.
0
 
roylamAuthor Commented:
the little utility is very helpful

thanks chewymon
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now