Forum Moderators: open

Message Too Old, No Replies

RTE problem

Shift Enter

         

tagapandan

3:36 am on Jun 19, 2007 (gmt 0)

10+ Year Member



I have downloaded the uncompressed RTE from [kevinroth.com ], the RTE works well..

What i notice is the action returned by the browser when I hit ENTER

MOZILLA = returns <BR>
IE = returns <P></P> or <P><BR>&nbsp;</P>

is there any way to fix this?
i just want the action returned by mozilla.

[edited by: DrDoc at 6:17 pm (utc) on June 19, 2007]
[edit reason] fixed broken link [/edit]

ahmedtheking

6:36 pm on Jun 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use JS or a Server Side Language (such as PHP) to filter that out.

DrDoc

6:45 pm on Jun 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, using a server side language to filter things out is certainly very complicated, as you really have no way of knowing whether the code was inserted that way on purpose, or on accident.

Are you familiar enough with JS to find your way around the scripts to find the place that captures keystrokes and such? Or, to write your own function, in the event of this particular keystroke in IE?

If there is a current function which captures keystrokes, you need to modify that. Otherwise, it's fairly easy to write something which captures "Shift-Enter" and turns it into "<br>".

Just out of curiosity -- what HTML is generated when just Enter is pressed in IE?