mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
게시글 미리보기시 csrf 문제 수정
게시글 미리보기시 에디터 스타일이 반영될 수 있도록 추가
This commit is contained in:
parent
3efc2a6b13
commit
ffe891fdae
2 changed files with 2 additions and 1 deletions
|
|
@ -745,6 +745,7 @@ function doDocumentPreview(obj) {
|
|||
if(!dummy_obj.length) {
|
||||
jQuery(
|
||||
'<form id="previewDocument" target="previewDocument" method="post" action="'+request_uri+'">'+
|
||||
'<input type="hidden" name="_rx_csrf_token" value="' + getCSRFToken() + '" />'+
|
||||
'<input type="hidden" name="module" value="document" />'+
|
||||
'<input type="hidden" name="act" value="dispDocumentPreview" />'+
|
||||
'<input type="hidden" name="mid" value="' + current_mid +'" />'+
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ class documentView extends document
|
|||
$obj->content = $content;
|
||||
$obj->module_srl = getModel('module')->getModuleInfoByMid(Context::get('mid'))->module_srl;
|
||||
$content = getModel('editor')->converter($obj, 'document');
|
||||
|
||||
$content = sprintf('<div class="document_0_%d xe_content">%s</div>', Context::get('logged_info')->member_srl, $content);
|
||||
Context::set('content', $content);
|
||||
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue