lional Posted May 13, 2009 Share Posted May 13, 2009 is it possible to read in doc files that will preserve the formatting. I am trying to write a site that will allow the client who has no knowledge of web development to create a word document bold the text that they would like, and have the php page read in that file and preserve the words that were put in bold face. if the word doc does not work, what is the easiest way to accomplish this? Thanks Lional Quote Link to comment https://forums.phpfreaks.com/topic/157960-read-in-doc-files/ Share on other sites More sharing options...
trq Posted May 13, 2009 Share Posted May 13, 2009 doc files are in an MS format that is notoriously hard to do anything with. if the word doc does not work, what is the easiest way to accomplish this? Provide a rich text editor interface. Quote Link to comment https://forums.phpfreaks.com/topic/157960-read-in-doc-files/#findComment-833146 Share on other sites More sharing options...
lional Posted May 13, 2009 Author Share Posted May 13, 2009 will they be able to edit the test that will enable then to do new lines, paragraphs, bold, etc and in what format will tehre files be saved Quote Link to comment https://forums.phpfreaks.com/topic/157960-read-in-doc-files/#findComment-833150 Share on other sites More sharing options...
JonnoTheDev Posted May 13, 2009 Share Posted May 13, 2009 This would be really difficult as reading a word doc requires a DOM object and a MS server. However you can get a variety of text editors that work through your web browser. If a user copies a document from MS Word it has the ability to preserve any formatting. http://www.fckeditor.net/ Quote Link to comment https://forums.phpfreaks.com/topic/157960-read-in-doc-files/#findComment-833151 Share on other sites More sharing options...
lional Posted May 13, 2009 Author Share Posted May 13, 2009 I must be missing something, but how will the user change the text on the page when they want it updated etc Quote Link to comment https://forums.phpfreaks.com/topic/157960-read-in-doc-files/#findComment-833155 Share on other sites More sharing options...
JonnoTheDev Posted May 13, 2009 Share Posted May 13, 2009 It is an online text editor like MS Word only in your web browser. You type the text, copy from MS Word, etc. Add a submit button and then save the text to your database, a text file or whatever. When it needs to be edited you get the record from the database, text file etc and then put it back into the editor. When it is submitted you update the record. Quote Link to comment https://forums.phpfreaks.com/topic/157960-read-in-doc-files/#findComment-833157 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.