Groups
Sign in
Groups
chsoft
Conversations
Labels
About
Send feedback
Help
svg/text 태그
31 views
Skip to first unread message
임서연
unread,
Dec 31, 2021, 1:45:35 AM
12/31/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chsoft
svg 와 text 태그 사용시 text태그에서 속성 입력 전 공백이 두번인 경우 태그가 변형되어 저장되고 있습니다.
예를들어 다음 text태그에서 <text x="0" y="315"
text 와 x="0" 사이 공백이 두칸인 경우에
<textx="0"></textx="0"> 이런식으로 변형되어 저장됩니다.
첨부파일은 cheditor 데모에서 실행한 내용입니다.
확인 부탁드립니다.
cheditor.png
chsoft
unread,
Jan 2, 2022, 12:41:49 PM
1/2/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chsoft
안녕하세요.
아래 코드를 조금 수정해 주십시오.
파일: cheditor.js
함수: convertContentsSpacer
수정 전:
content = content.replace(/
\s{2,}|
[\r\n\t]+?/gm, '');
수정 후:
content = content.replace(/[\r\n\t]+?/gm, '');
알려 주셔서 감사합니다.
2021년 12월 31일 금요일 오후 3시 45분 35초 UTC+9에 임서연님이 작성:
Reply all
Reply to author
Forward
0 new messages