Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] ReadOnly Rich Text Field or Annotating Plain Text via a web browser.

Expand Messages
  • dav.glass@yahoo.com
    Mark Assad -- You might be able to do this by stopping the keyboard events. Something like this: myEditor.on( editorKeyDown , function(ev) {
    Message 1 of 2 , Nov 5, 2007
    • 0 Attachment
      Mark Assad --

      You "might" be able to do this by stopping the keyboard events. Something like this:

      myEditor.on('editorKeyDown', function(ev) {
      myEditor.on('editorKeyUp', function(ev) {
      myEditor.on('editorKeyPress', function(ev) {

      That would stop the user from typing..

      Hope that gets you in the right direction :)
      Dav Glass
      + Windows: n. - The most successful computer virus, ever. +
      + A computer without a Microsoft operating system is like a dog
      without bricks tied to its head +
      + A Microsoft Certified Systems Engineer is to computing what a
      McDonalds Certified Food Specialist is to fine cuisine +

      ----- Original Message ----
      From: Mark Assad <massad@...>
      To: ydn-javascript@yahoogroups.com
      Sent: Monday, November 5, 2007 4:21:03 AM
      Subject: [ydn-javascript] ReadOnly Rich Text Field or Annotating Plain Text via a web browser.


        I'm working on a small javascript/YUI application and I'd appreciate
      any help from someone who's had a bit of experience with these
      applications. My aim is to use the web browser as a platform for
      annotating text. To do so I'd like to be able to display the text in
      the browser and then allow users to select the text and make
      annotations. These annotations will start as being simply wrapping the
      text is custom <span> tags.

      This means that the text itself has to be read-only, the only changes
      that I'd like the users to be able to make is to the markup. I know
      the rich text editor allows for markup to be changed -- you can make
      text bold, underlined, changed the heading etc. But, is it possible to
      do something like this and not let user change the actual text?

        I've had a quick look at the selection object. Has there been any
      work on integrating that with the YUI libraries?

      Mark Assad.

      Yahoo! Groups Links

      <*> To visit your group on the web, go to:

      <*> Your email settings:
          Individual Email | Traditional

      <*> To change settings online go to:
          (Yahoo! ID required)

      <*> To change settings via email:

      <*> To unsubscribe from this group, send an email to:

      <*> Your use of Yahoo! Groups is subject to:

    Your message has been successfully submitted and would be delivered to recipients shortly.