Importing Text File into WYSIWYG iframe = No line breaks

  • Автор темы Автор темы gcomm
  • Дата начала Дата начала

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
 
How about using an enter simulation after each row?
 
how do you append text to your textarea? by innerHTML property? Try maybe innerText instead
 
meow.JPG
 

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