Importing Text File into WYSIWYG iframe = No line breaks

gcomm

Client
Регистрация
01.03.2011
Сообщения
332
Благодарностей
93
Баллы
28
Basically I am dropping in my advertisement description from my txt file in UNICODE format. The ad on the text file is show below...

====================================================
MY PRODUCTS ARE THE BEST


MY COOL description here. bUY my stuff and you will be happy.

Call me here. 123 456 8899

Or visit my website here _ttp:www.whatever.kom


====================================================
When I drop this file fomat into the description field, it comes out as below
====================================================

MY PRODUCTS ARE THE BESTMY COOL description here. bUY my stuff and you will be happy.Call me here. 123 456 8899Or visit my website here _ttp:www.whatever.kom


====================================================


NO BREAKS NO NOTHING - just the unwrapped string - THE WYSIWYG DOES NOT ACCEPT HTML - only plain text - however simple line breaks when I copy and paste are inserted... any ideas ?

Thanks;gcomm
 

kikko

Client
Регистрация
23.02.2011
Сообщения
16
Благодарностей
0
Баллы
0
How about using an enter simulation after each row?
 

gcomm

Client
Регистрация
01.03.2011
Сообщения
332
Благодарностей
93
Баллы
28

gcomm

Client
Регистрация
01.03.2011
Сообщения
332
Благодарностей
93
Баллы
28

gemini

Client
Регистрация
10.03.2011
Сообщения
160
Благодарностей
31
Баллы
28
how do you append text to your textarea? by innerHTML property? Try maybe innerText instead
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113

gcomm

Client
Регистрация
01.03.2011
Сообщения
332
Благодарностей
93
Баллы
28

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)