[FIX] web_editor: open link dialog on dblclick on real links
When double-clicking on a link/button, the link dialog is opened. The problem was that the "btn" class is sometimes used on non-link elements. While this should not be, the editor can easily be adapted to this.
This commit is contained in:
@@ -771,7 +771,7 @@ eventHandler.attach = function (oLayoutInfo, options) {
|
||||
* Open Link Dialog on double click on a link/button.
|
||||
* Shows a tooltip on click to say to the user he can double click.
|
||||
*/
|
||||
create_dblclick_feature("a[href], .btn", function () {
|
||||
create_dblclick_feature("a[href], a.btn, button.btn", function () {
|
||||
eventHandler.modules.linkDialog.show(oLayoutInfo);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user