- [뜨개질] the purl bee
- [니트패턴] 워머
- [블로그] 워머
- 포근이네집
- 아로마 천연 재료
- 교보문고 일본 손뜨개 도서 할인!!
- 텐바이텐아카데미
- [쇼핑몰] 화장품만들기
- la cuisine
- 선경도서관
- [래;코드] 업사이클 클래스
- [여행] 스테이폴리오
- [타일] 윤현상재
- Art Students league in NewYork
- tiger magazine
- vanessa beecroft
- icon magazine
- google earth
- lonely planet - taiwan forum
- pinterst
- etsy
- Hotel Deals and Vacation Homes…
- Apartment Therapy | Saving the…
- newscientist
- salon
- The New Yorker
- 한국어 맞춤법/문법 검사기 V4.2 - 201202
- English to French, Italian, Ge…
- radio italia
- Indo-European Languages:Free O…
- Dictionary.com | Find the Mean…
- 헌즈 블로그인
- 무지씨
- 이다
- 오기사
- [블로거] 나른한 고냥이님
- 내blogin
- Dangmoo
- 빈티지네코샵
- quodlibet
- [쇼핑몰][키작은남자]이철민 쇼핑몰
- shop-mk
- COOKEY ▒여성들의 쇼핑공간▒
- 베를린리포트 | 벼룩시장
- 스위스철도
- 롱샹성당/ORI's StoRY
- 롱샹성당/ON AIR
- ArchDaily
- 아트토이샵
- 토이붐
- 킨키로봇
- 편의점택배
- 아트앤토이즈
- 미니매니아
- 토이에스
- 마블샵
- 토이홀릭
- DESIGN & ZAKKA SHOP 7STZOO
- 앨리스설탕
- 호스텔
- 프랑스기차예매
- 유로라인
- 유레일패스
- English to French, Italian, Ge…
- 추억을 만지다, 미오디오
- thalys기차예매
- 마이미니미
- 토이윙
- 라이언에어항공예약
- 이지젯항공예약
- 독일철도청
- DBS 크루즈훼리(주)
- BVG.de - Homepage
- 제국의회의사당
- 건축블로그01
- ArchDaily
miako
[script] copy to clipboard 본문
http://www.javascriptkit.com/javatutors/copytoclipboard.shtml
https://github.com/ryanpcmcquen/simpleJsCopy
ios safari problem
http://stackoverflow.com/questions/34045777/copy-to-clipboard-using-javascript-in-ios
iOS Safari there are some restrictions (which actually are security measures) to the Clipboard API
It fires copy events only on a valid selection and cut and paste only in focused editable fields.
It only supports OS clipboard reading/writing via shortcut keys, not through document.execCommand(). Note that "shorcut key" means some clickable (e.g. copy/paste action menu or custom iOS keyboard shortcut) or physical key (e.g. connected bluetooth keyboard).
It doesn't support the ClipboardEvent constructor.
So (at least as of now) it's not possible to programmatically copy some text/value in the clipboard on an iOS device using Javascript. Only the user can decide whether to copy something.
iOS는 보안 문제로 Clipboard API를 지원하지 않습니다.
오직 유저의 물리적 엑션을 통해 iOS에서 제공하는 메뉴를 사용해서만 가능하며 프로그램이나 스크립트로는 불가능합니다.
In this case, it seems that the user must first select the content to copy.
ios safari의 경우엔 유저가 복사할 컨텐츠를 스스로 선택하는 단계가 반드시 필요하다.
use document.execCommand('copy') in IOS safari
From my test. IOS8.0 Safari can copy as well, but IOS7,9 or other IOS8 version can't!
참고)
- Playing with the clipboard in iOS safari – Ryan Seddon
https://www.thecssninja.com/javascript/ios-clipboard
- 클립보드API 지원 브라우저
http://caniuse.com/#feat=clipboard
- Clipboard API editor spec
https://w3c.github.io/clipboard-apis/
- great resource
http://help.dottoro.com/larpvnhw.php
'work' 카테고리의 다른 글
[plugin] jstree (0) | 2016.07.13 |
---|---|
[program] Sublime Text (0) | 2016.07.12 |
[program] TortoiseSVN (0) | 2016.07.12 |
[css] Truly Fluid Typography With vh And vw Units (0) | 2016.06.30 |
[work] Mobile (0) | 2016.06.28 |