Skip to content

모바일에서도 쪽지 발신시 에디터를 쓰게 해주세요. #2341

@wookho

Description

@wookho

저희는 오래전부터 모바일에서도 , 서명에서도 에디터를 사용하게 해서 고쳐서 쓰고 있습니다.
모바일 사용 비중이 월등히 높아진 지도 수년이 지났습니다.
모바일에서는 제외하는 그런 방침은 이제 모두 철회되어야 합니다.

저희는

// set a signiture by calling getEditor of the editor module
$oEditorModel = getModel('editor');
$option = new stdClass();
$option->primary_key_name = 'receiver_srl';
$option->content_key_name = 'content';
$option->allow_fileupload = FALSE;
$option->enable_autosave = FALSE;
$option->enable_default_component = TRUE; // FALSE;
$option->enable_component = FALSE;
$option->resizable = FALSE;
$option->disable_html = TRUE;
$option->height = 150;
$option->skin = $this->communication_config->editor_skin;
$option->colorset = $this->communication_config->editor_colorset;
$editor = $oEditorModel->getEditor($logged_info->member_srl, $option);

위와 같은 코드를 PC쪽의 파일에서 차용해서 모바일 쪽
https://github.com/xpressengine/xe-core/blob/develop/modules/communication/communication.mobile.php

에 추가해서 모바일 쪽지에서도 에디터를 사용하고 있습니다.

서명부분이 위 코드로 함께 되었는지는 너무 오래전 일이라 기억이 나질 않네요.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions