에디터에서 마우스올리면 파일명
본문
cheditor5 에디터 이용중인데 업로드한 이미지나 외부이미지 붙여넣기후에
이미지에 마우스 올리면 파일명이 노출되던데
혹시 파일명 삭제 방법이나 아니면 관리자가 설정한 문구로 노출할수있는방법
아시는 전문가님 계실까요?
답변 2
참고하세요.
https://gnustudy.com/bbs/board.php?bo_table=gnu_tip&wr_id=12
스마트에디터 관련 팁이긴 하지만 중간 내용부터 보고 적용해도 될 겁니다.
smarteditor2는
https://github.com/gnuboard/gnuboard5/blob/5.4.5.2/plugin/editor/smarteditor2/photo_uploader/plugin/hp_SE2M_AttachQuickPhoto.js#L98
<img> tag에 title attr을 넣어서 리턴해주고요
cheditor는
https://github.com/gnuboard/gnuboard5/blob/5.4.5.2/plugin/editor/cheditor5/popup/js/image.js#L415
https://github.com/gnuboard/gnuboard5/blob/5.4.5.2/plugin/editor/cheditor5/popup/js/image_url.js#L102
<img> tag에 alt attr을 넣어서 리턴해줍니다
원래 alt는 마우스를 올린다고
팝업으로 뜨는게 아닌데요
그누보드에는 a 태그 안의 img alt를 title로 변환해주는 js기능이 있습니다
https://github.com/gnuboard/gnuboard5/blob/5.4.5.2/js/common.js#L525