TWebRichEditor and Safari

Hi,

In my application I set in general text select prevention like this:

css:

body{
  -webkit-user-select: none;
   user-select:none;
}

First line "-webkit-user-select: none;" prevents text selection for safari 3.1+

I have strange behavior for TWebRichEdit because this prevents me to edit text in this object in Safari.
The rest objects like e.g. input textfields are ok.

Could you check this?

Possibly this interferes with the needed ability to select text in the editor.
We will investigate.

Hi,


Setting user-select to none will indeed conflict with the required editing in a TWebRichEdit control.
As a workaround you can add an exception in you CSS to enable editing in the TWebRichEdit.
You can do this by assigning the ElementClassName of TWebRichEdit and add the relevant CSS selector.

Example:
  WebRichEdit1.ElementClassName := 'editable';

CSS:

.editable
{
  -webkit-user-select: text;
   user-select:text;
}

Ok ... thank you very much