Skip to content

Commit a235c4f

Browse files
committed
Created version 2.4... clicking anywhere on the Mendix app does not show the open image dialog.
1 parent ff70e51 commit a235c4f

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

settings/BootstrapRTE.mws

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<clsMXWidgetSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
33
<WidgetName>BootstrapRTE</WidgetName>
4-
<SourcePath>C:\Projects\Tickets - Projects\204044 - Incident Bootstrap RTE appstore module broken in IE 11\BootstrapRTE\src\</SourcePath>
5-
<DestinationPath>C:\Projects\Tickets - Projects\204044 - Incident Bootstrap RTE appstore module broken in IE 11\BootstrapRTE\test\</DestinationPath>
4+
<SourcePath>C:\Projects\GitHub\Bootstrap-RTE\src</SourcePath>
5+
<DestinationPath>C:\Projects\GitHub\Bootstrap-RTE\test</DestinationPath>
66
<Monitor>false</Monitor>
77
</clsMXWidgetSettings>

src/BootstrapRTE/widget/BootstrapRTE.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@
535535
// Variables
536536
var button = mxui.dom.create('a', { 'id': 'pictureBtn' + this.id, 'class' : 'btn'}),
537537
icon = mxui.dom.create('i', { 'class' : 'icon-' + type.icon }),
538-
pictureInput = mxui.dom.create('input', {'id' : 'pictureBtnInput' + this.id , 'type' : 'file', 'data-edit' : 'insertImage', 'data-target' : '#pictureBtn' + this.id, 'data-role' : 'magic-overlay'});
538+
pictureInput = mxui.dom.create('input', {'id' : 'pictureBtnInput' + this.id , 'type' : 'file', 'data-edit' : 'insertImage', 'data-target' : '#pictureBtn' + this.id, 'data-role' : 'magic-overlay', 'style' : 'width: 35px;' });
539539

540540
domConstruct.place(icon, button);
541541
domConstruct.place(button, group, 'last');
@@ -592,13 +592,13 @@
592592
target = null,
593593
$ = this.$;
594594

595-
this.connect(document, 'onmousedown', function(e) {
595+
this.connect(dom.byId(this.id), 'onmousedown', lang.hitch(this, function(e) {
596596
// The latest element clicked
597597
self.target = domQuery(e.target);
598-
});
598+
}));
599599

600600
// when 'target == null' on blur, we know it was not caused by a click
601-
this.connect(document, 'onmouseup', function(e) {
601+
this.connect(dom.byId(this.id), 'onmouseup', function(e) {
602602
// The latest element clicked
603603
self.target = null;
604604
});

test/BootstrapRTETest.mpr

1 KB
Binary file not shown.

test/widgets/Bootstrap-RTE.mpk

319 KB
Binary file not shown.

0 commit comments

Comments
 (0)