Text area in svg shapes

狂风中的少年 提交于 2019-11-30 15:30:41

I assume that you are using the CSS stylesheet from the JointJS HTML tutorial (http://jointjs.com/tutorial/html-elements).

Note that .html-element has pointer-events set to none. With that being set all events are propagated to the (JointJS) SVG Element under the HTML Element. The paper therefore knows what element was interacted with and e.g. can start dragging it.

.html-element {
   pointer-events: none;
}

I suggest to create an exception for the TextArea by adding the following CSS rule.

.html-element textarea {
   pointer-events: all;
}
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!