简体   繁体   English

如何在Chrome的Telerik RadEditor中一次选择多个项目?

[英]How can I select multiple items at once in Telerik RadEditor on Chrome?

I am working on an application based on ASP.NET, running in IE11 and Chrome. 我正在研究基于ASP.NET的应用程序,该应用程序在IE11和Chrome中运行。

One part of the application makes use of (Telerik) RadEditor to create a layout of several items. 该应用程序的一部分利用(Telerik)RadEditor创建多个项目的布局。

I can select (selection border shows up on all selected elements) multiple elements in the page (in the (Telerik) RadEditor content space) by holding control+clicking in IE11, but I cannot do the same in Chrome. 我可以通过按住IE11并单击IE11来选择页面(在所有选定元素上显示选择边框)(在(Telerik)RadEditor内容空间中)页面中的多个元素,但是我无法在Chrome中执行相同的操作。 In Chrome it just selects the last thing clicked. 在Chrome中,它只选择最后单击的东西。

Is there a way to multi-select like this in Chrome, or a reason it works in IE11 but not in Chrome? 有没有办法在Chrome中进行多重选择,还是有理由在IE11中起作用而不在Chrome中起作用?

The IE browser's execCommand method offers a MultipleSelection option which allows for the selection of more than one site selectable element at a time when the user holds down the SHIFT or CTRL keys. IE浏览器的execCommand方法提供了MultipleSelection选项,当用户按住SHIFT或CTRL键时,一次可以选择多个站点可选元素。 You can find more info at https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/hh801232(v%3dvs.85)#multipleselection 您可以在https://docs.microsoft.com/zh-cn/previous-versions/windows/internet-explorer/ie-developer/platform-apis/hh801232(v%3dvs.85)#multipleselection中找到更多信息。

To fire this method via the RadEditor API do: 要通过RadEditor API触发此方法,请执行以下操作:

editor.get_document().execCommand('MultipleSelection', true, true);

To get reference on the client object of RadEditor check this resource https://docs.telerik.com/devtools/aspnet-ajax/controls/editor/client-side-programming/getting-a-reference-to-radeditor 要获取有关RadEditor客户端对象的引用,请检查此资源https://docs.telerik.com/devtools/aspnet-ajax/controls/editor/client-side-programming/getting-a-reference-to-radeditor

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM