Page 1 of 1
How Can i Fetch Text File Content into FCk Editor
Posted: Tue Jun 17, 2008 2:43 am
by bhagwat
Hello
My Objective is to,
assign the value of FCK Editor from Text File Content.
Please Help Me
Re: How Can i Fetch Text File Content into FCk Editor
Posted: Tue Jun 17, 2008 3:06 am
by onion2k
The fact it's FCKEditor is irrelevant ... you just need to stick the content into the textarea that FCK is attached to. Open the file with file_get_contents() and echo the contents into the right bit of the html. You might need to use htmlentities() on it depending on what's in the file.
Re: How Can i Fetch Text File Content into FCk Editor
Posted: Tue Jun 17, 2008 3:31 am
by bhagwat
Thanks For Reply.
I am already use this function.
when i read the content of doc file then the formatting of text is ruined.
Please Help Me.
Re: How Can i Fetch Text File Content into FCk Editor
Posted: Tue Jun 17, 2008 3:37 am
by John Cartwright
Are you refering to the line breaks not appearing correctly? Try passing the contents through
nl2br()
Re: How Can i Fetch Text File Content into FCk Editor
Posted: Tue Jun 17, 2008 3:43 am
by bhagwat
thank you Sir,
When i am passing the content of doc file into text area of FCK Editor. then the data shown i n this format.
ÐÏࡱá����������������>��þÿ ���������������J����������M������þÿÿÿ����I���ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿì¥Á�[€ ��ð¿�������������À���bjbj¬ú¬ú������������������ �@>��Î�Î�‚���������������������"�������ÿÿ���������ÿÿ���������ÿÿ�����������������·�����R������R��•������•������å������å������å�������������ÿÿÿÿ����ù������ù������ù��8���1��l�����4���ù������ã+��p��Ñ������Ñ�����á������á������á������â������â������â������†+�����ˆ+������ˆ+������ˆ+������ˆ+������ˆ+������ˆ+������S.��¢��õ0��j���ˆ+���������������������å������Î����������������������¢��@���â������Î������Î������ˆ+��������������•������•������á��������������á��Á��+�����Ö!������Ö!������Ö!������Î��š���•��8���á������å������á������†+��������������Ö!������������������������������������������������������Î������†+��������������Ö!������Ö!��V���*��@���Í���������������������������������������������������������������������Æ*������á������ÿÿÿÿ���� €Öû“ÏÈ��������ù������h��¢��B*�������������r+�����³+��0���ã+������N*��x���_1������
��ô��_1�����Æ*������������������������������������������������������������������������������_1��������������å������Æ*��¬���â��"��������Ö!�����������0��ž�����������������������������������â������â������â������ˆ+������ˆ+��������������������������������������þ��Ø����������������������������������â������â������â������ã+������Î������Î������Î������Î��������������ÿÿÿÿ����ÿÿÿÿ����ÿÿÿÿ������������ÿÿÿÿ����ÿÿÿÿ����ÿÿÿÿ����ÿÿÿÿ����ÿÿÿÿ����ÿÿÿÿ����ÿÿÿÿ����ÿÿÿÿ����ÿÿÿÿ����ÿÿÿÿ����ÿÿÿÿ����ÿÿÿÿ����ÿÿÿÿ����ÿÿÿÿ����_1������â������â������â������â������â������â��������������������������������������������������������������â������â������â������R�� ��[��:����� ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������BHAGWAT SINGH
er.bhagwatsingh@yahoo.co.in
er.bhagwatsingh@gmail.com
Re: How Can i Fetch Text File Content into FCk Editor
Posted: Tue Jun 17, 2008 3:59 am
by onion2k
"doc file"? You mean it's a Microsoft Word document? You can't load that into FCKEditor. You need to export it from Word as either HTML or plain text. .doc is a very complicated format that's pretty much impossible to use in a web based CMS.
Re: How Can i Fetch Text File Content into FCk Editor
Posted: Tue Jun 17, 2008 4:27 am
by bhagwat
Actually i want to convert doc to pdf so i use this.
if there is any other method then tell me the solution.
please help me.
Re: How Can i Fetch Text File Content into FCk Editor
Posted: Tue Jun 17, 2008 11:43 am
by John Cartwright
The only way that I know of is to use COM, and your going to need to have microsoft word installed on the server. Heres a code snippet I found for you,
http://www.wynia.org/wordpress/word-to- ... -word2pdf/