Hello
My Objective is to,
assign the value of FCK Editor from Text File Content.
Please Help Me
How Can i Fetch Text File Content into FCk Editor
Moderator: General Moderators
Re: How Can i Fetch Text File Content into FCk Editor
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
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.
I am already use this function.
when i read the content of doc file then the formatting of text is ruined.
Please Help Me.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: How Can i Fetch Text File Content into FCk Editor
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
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
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
"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
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.
if there is any other method then tell me the solution.
please help me.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: How Can i Fetch Text File Content into FCk Editor
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/