Уровень 0 · материалов: 3
В кластер входят документы, описывающие программное управление выделением и копированием текста в веб-интерфейсе, и не входят документы об оптимизации прокрутки или общего взаимодействия с мышью.
Общие признаки: JavaScript, манипуляции с текстом, буфер обмена, выделение текста, поведение браузера
Группа выше: Работа с данными и текстом в JavaScript
Смысл: The main idea is to provide web developers with a comprehensive set of methods—ranging from CSS to JavaScript—to disable text selection to enhance UI usability in web applications across different browsers.
A technical guide explaining how to prevent text selection using browser-specific attributes, CSS, and a custom cross-browser JavaScript function for better web application UX.
Смысл: The text explains how to implement 'copy' and 'cut' functionality in a web browser using JavaScript's Document.execCommand() and the Selection API, providing code examples and compatibility warnings.
A technical guide on using Document.execCommand() and the Selection API to programmatically copy and cut text in web browsers.
Смысл: The main idea is to introduce web developers to the modern Asynchronous Clipboard API in JavaScript, highlighting its efficiency over synchronous methods, its security requirements, and how to implement basic read/write functionality with proper browser support checks.
An overview of the JavaScript Asynchronous Clipboard API, explaining how to read and write text to the clipboard using Promises while ensuring security and browser compatibility.