이모티콘 경로 문제 수정

짧은 주소 사용시 https://~/mid/modules/path가 되지 않도록 수정
이모티콘 추가시 '추가되었다'는 메세지 띄움
This commit is contained in:
conory 2020-03-03 21:49:37 +09:00
parent 64e1258f0c
commit a721429f8b
5 changed files with 45 additions and 31 deletions

View file

@ -1,6 +1,9 @@
<load target="popup.js" />
<load target="popup.less" />
{@Context::addMetaTag('viewport', 'width=device-width', FALSE);}
<script>
var lang_success_added = '{$lang->success_added}';
</script>
<div class="x_modal-header">
<h1>{$component_info->title}</h1>
</div>

View file

@ -23,17 +23,17 @@ function completeGetEmoticons(ret_obj) {
.width( parseInt(emoticons[i].width, 10))
.height(parseInt(emoticons[i].height, 10))
.attr({
'src': './modules/editor/components/emoticon/tpl/images/'+emoticons[i].filename,
'data-src': './modules/editor/components/emoticon/tpl/images/'+emoticons[i].filename,
'src': emoticons[i].url,
'data-src': emoticons[i].url,
'alt': emoticons[i].alt
});
if( emoticons[i].svg ) {
$img.attr({
'data-svg': './modules/editor/components/emoticon/tpl/images/'+emoticons[i].svg
'data-svg': emoticons[i].svg
});
if( typeof SVGRect !== "undefined" ) {
$img.attr({
'src': './modules/editor/components/emoticon/tpl/images/'+emoticons[i].svg
'src': emoticons[i].svg
});
}
}
@ -67,7 +67,8 @@ function insertEmoticon(obj) {
win.editorRelKeys[win.editorPrevSrl].pasteHTML(html);
if (is_popup) window.focus();
rhymix_alert(lang_success_added);
return false;
}