Notice
Recent Posts
Recent Comments
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 이벤트
- 스크롤
- This
- Push
- IntersectionObserver
- 배열
- json
- 클로저
- event
- 비동기
- dom
- 이벤트 위임
- ES6
- 모듈
- video
- 객체
- 문자열
- 애니메이션
- input
- ios
- ajax
- animation
- scroll
- object
- Flex
- Promise
- 이벤트 루프
- array
- slice
- map
Archives
- Today
- Total
목록execCommand (1)
FEDev Story
[자바스크립트] 에디터 만들기(document.execCommand())
document.execCommand('속성'); HTML5 부터 지원되는 document.execCommand() 함수 입니다.현재 선택영역의 텍스트를 인자로 받은 값을 통해 변환시킵니다.(여기서 선택 영역이란 마우스로 텍스트를 드래그했을 때의 파란 박스 영역을 말합니다.) 123456789101112131415document.execCommand('Italic') // 기울이기document.execCommand('Underline') // 밑줄document.execCommand('StrikeThrough') // 중간줄document.execCommand('Cut') // 자르기document.execCommand('Copy') // 복사하기document.execCommand('Paste') /..
Web.Dev
2018. 8. 3. 18:13