Re: How can i deactivate paste in a rich text edit box ?



The *only* reason to do anything on the client side is to help the
normal user. Since he isn't pasting bad HTML anyway, there is no need
to do anything. Even if he manages to paste bad HTML, the server will
remove it and (hopefully) display his result to him.

I disagree, here! I run some CMS' for some customers who are, let's
see...not technically savvy. I wish everyone could be on the up and
up, but they aren't always. One thing that they constantly do that
fouls up the system before we instituted some scripting ((both server
and client side)) is paste content from MS Word. This looks like html.
Smells like html. But breaks our editor and the resulting webpages
like there's no tomorrow.

So, Mr. Russell, to tell you what we did, on the JS end, we tested with
a regex on pasting and submission for basic valid xhtml ((google for
something that will work, i did!)), and then something similar on the
backend of our server before submission.

Hope that helps!

-Brendan

.



Relevant Pages

  • some" folks are unable to post any file till "some" are able
    ... scripting at all and "some" folks are unable to post any file till ... I've installed a packet sniffer software on the server and looked ... It appears that, for some reasons i realy dont know of, the client ... Here is the WHOLE (HTML 4.01 transit) code of the non working page. ...
    (microsoft.public.inetserver.asp.general)
  • Unable to post multipart/form-data
    ... scripting at all and "some" folks are unable to post any file till ... I've installed a packet sniffer software on the server and looked ... It appears that, for some reasons i realy dont know of, the client ... Here is the WHOLE (HTML 4.01 transit) code of the non working page. ...
    (microsoft.public.inetserver.iis)
  • Re: How to do a post back when user press enter.
    ... It is hosted on a web server, ... the client browser, which is designed to read and interpret HTML. ... UI, via the event handler. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to do a post back when user press enter.
    ... > requested by a client browser, ... > by an ISAPI (Internet Server Application Programming Interface) ... > and interpret HTML. ... > to its process and UI, via the event handler. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: DUML
    ... communications) with presentation (HTML DOM) in a horrible manner. ... When you get right down to it - the tree is all you have in ... AJAX patterns (client-side application of appropriate presentation to ... where the _client_ has control over the server and the transactions. ...
    (alt.html)