我正在尝试将内容拖到 OL5.0 中的 html 内容上。观察结果是我能够毫无问题地从 laszlo 组件拖动到 html 组件。我能够从 laszlo 拖到 html 到 laszlo。但是,如果我将该视图拖到 html,然后释放它,然后从 html 拖,它就不起作用。
这是代码。
<canvas>
<view bgcolor="green" width="20" height="20" onmousedown="dragger.setAttribute('applied', true);this.bringToFront();" onmouseup="dragger.setAttribute('applied', false)">
<dragstate name="dragger"/>
</view>
<view y="50" width="100%" height="300" bgcolor="blue" onmousedown="res.apply()" onmouseup="res.remove()">
<resizestate name="res"/>
<dragstate name="drg"/>
<text width="100%" bgcolor="gray" onmousedown="parent.drg.apply()" onmouseup="parent.drg.remove()">Drag here</text>
<html id="ht" src="http://localhost:8080/lps-5.0.x/htmlTest/resource/text.html" x="15" y="15" width="${parent.width - 30}" height="${parent.height - 30}"/>
</view>
</canvas>