Unanswered: Multi-line message with Ext.Msg.alert() ?
Unanswered: Multi-line message with Ext.Msg.alert() ?
Hello,
I've just migrated my app from Ext 4.1.0 to 4.1.1, and I saw that a lot of my alert messages weren't displayed properly anymore. These messages are HTML, and I use Ext.Msg.alert() or Ext.Msg.show() to display them.
All the tags are working, except <br> tags. I tried to replace them with \n, \u000A, and <br/>, but nothing works .
I've just migrated my app from Ext 4.1.0 to 4.1.1, and I saw that a lot of my alert messages weren't displayed properly anymore. These messages are HTML, and I use Ext.Msg.alert() or Ext.Msg.show() to display them.
All the tags are working, except <br> tags. I tried to replace them with \n, \u000A, and <br/>, but nothing works .
Anyone can offer me a solution ?
Thanks !
Have you tried <p> tag? Try placing it in front of the char where you think you need a line break. I think it works.
Have you tried <p> tag? Try placing it in front of the char where you think you need a line break. I think it works.
Regards,
Premkumar. A
Hi,
Thanks for your solution, but I've tried it and it doesn't work. From what i could gather from various Ext topics, the text in the message box is encased in a <span> tag (inline tag). This means that no block type tag can be used inside it (either it will be stripped by a cleaning functon, or it will simply not render).