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

Re: RTE Questions

Expand Messages
  • Greg Melton
    Dav, This doesn t help for 2/3... Maybe I discovered a unique use-case? Things start to get interesting when you override the insertimage option with a popup
    Message 1 of 3 , Oct 29, 2008
    • 0 Attachment
      Dav,

      This doesn't help for 2/3...

      Maybe I discovered a unique use-case?

      Things start to get interesting when you override the insertimage
      option with a popup window. If I single-click an image I've placed
      inside FF the insertlink option remains inactive.

      Now, in Safari, when I single-click an image the insertlink button
      becomes active. If I click this button I'm shown the image properties
      dialog.

      How can I make it so when you single-click an image the insertlink
      button remains inactive across all browsers? In addition, when
      overriding the insertimage with a popup, how do I kill the
      double-click event which should normally display the image properties
      dialog? In this case, double-clicking an image just launches the popup
      window and selecting a new image doesn't replace the image you clicked
      on (as you might expect). it just adds the new image below the image
      you clicked on.

      Greg

      --- In ydn-javascript@yahoogroups.com, dav.glass@... wrote:
      >
      >
      > Greg --
      >
      > 1. Safari and Opera currently do not support resizing an image in
      designMode, so the resize handles will not show up.
      >
      > 2/3. This patch should fix both of those issues:
      http://blog.davglass.com/files/yui/editor68/
      >
      >
      > Does that help?
      > Dav
      >
      > Dav Glass
      > dav.glass@...
      > blog.davglass.com
      >
      >
      >
      >
      > + 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: Greg Melton <massgripnosis@...>
      > > To: ydn-javascript@yahoogroups.com
      > > Sent: Wednesday, October 29, 2008 12:04:19 PM
      > > Subject: [ydn-javascript] RTE Questions
      > >
      > > I'm in the middle of implementing the RTE (2.6 build) for our revamped
      > > newsletter system at my work. I've come across a few interesting
      > > things that I haven't been able to track down on the list or in the
      > > source code.
      > >
      > > 1. When I insert an image using FF 3.x it allows me to resize the
      > > image and drag-and-drop it. On Safari 3.1.x, this isn't working for
      > > some reason. Safari stylizes the border of the image with a different
      > > style then FF and doesn't allow me to resize or drag it. After looking
      > > into the source for SimepleEditor I see a series of known Safari 2.x
      > > issues in regards to not being able to detect the cursor location.
      > > Does this issue still exist for Safari 3.1.x? Are the two related?
      > >
      > > 2. If I single-click an image after adding it to the Editor on Safari
      > > 3.1.x, it toggles the insertlink button to active. This isn't the case
      > > with FF 3.x. Is there a way to prevent insertlink from being active in
      > > this case? I would like to mimic FF behavior here.
      > >
      > > 3. I've placed hooks to launch a popup so you can select an image to
      > > insert into the editor. I followed the example for this and it works
      > > great. I've noticed double-clicking images inside the editor opens the
      > > popup, again. How can I turn this off?
      > >
      > > Any help, comments, or pointers would be much appreciated.
      > >
      > > Thanks,
      > > Greg
      > >
      > >
      > >
      > > ------------------------------------
      > >
      > > Yahoo! Groups Links
      > >
      > >
      > >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.