Hi Dmitry,
Dmitry Pryadkin wrote: > Alex, >> The problem is that the CSS property "user-select" is set at a global >> level (precisely at the BODY element) and as a result every widget is >> not selectable. >> > So what do you think about an *IFRAME*? As I know it has a separate document. This is also an alternative solution for your problem. As the content of the iframe widget is user-specified the framework does not set any "user-select" property for the iframe widgets. So you have full control over the content and as a consequence the text is selectable by the user. >> What do you like to achieve? If there should only be an area which can >> be selected by the user you can use a TextArea widget as alternative and >> style this one to suit your needs (e.g. remove the border and/or the >> backgroundColor). >> > I'm creating something similar to a source code editor. I believe it's hard > to > actually re-style the *TextArea* for this kind of a task. But probably I can > borrow the code that works with selections. Going to check the *iframe* first. Have you heard about the HtmlArea widget? It is an editor component based on the Iframe widget. Maybe this widget can help you in your further development. See at [0] for further details of this widget and at [1] for details of including a contrib widget in your application. cheers, Alex [0] http://qooxdoo.org/documentation/contrib/HtmlArea [1] http://qooxdoo.org/documentation/contrib ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
