• 돌아가기
  • 아래로
  • 위로
  • 목록
  • 댓글
기능 추가/해결 완료

visualeditor 확장기능 설치방법

hunhee 162

0

3
어디서 문제가 발생했나요? 가온 위키 베타
언제 발생했나요? 2020-01-03
문제가 발생한 시간 2020/01/03 20:00
자세히 알려주세요 하단 참조
등록을 위한 마지막 목록

미디어위키에서 visualEdior설치에 어려움이 있으신것 같으셔서 글을 남기겠습니다.(데비안 기준입나다!)

덕질하러 가야해서 간단하게 적겠습니다!

확장기능을 extensions폴더에 넣고 LocalSettings.php 하단에 내용을 추가해 줍니다.

wfLoadExtension( 'VisualEditor' );

 

// Enable by default for everybody

$wgDefaultUserOptions['visualeditor-enable'] = 1;

 

// Optional: Set VisualEditor as the default for anonymous users

// otherwise they will have to switch to VE

// $wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";

 

// Don't allow users to disable it

$wgHiddenPrefs[] = 'visualeditor-enable';

 

// OPTIONAL: Enable VisualEditor's experimental code features

#$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;

$wgVirtualRestConfig['modules']['parsoid'] = array(

// URL to the Parsoid instance

// Use port 8142 if you use the Debian package

'url' => 'http://localhost:8000',

// Parsoid "domain", see below (optional)

'domain' => 'wiki.localhost',

// Parsoid "prefix", see below (optional)

'prefix' => 'wiki.localhost'

);

여기에서 url, domain,prefix는 수정하셔야 합니다.

사이트에 접속하여 편집을 시도하면 오류를 내뿜고 있을 것 입니다.

이유는 Parsoid라는게 필요하다고 합니다...

Parsoid를 설치하는 방법은 아레 내용을 복붙하면 됩니다.

sudo apt install dirmngr -y
sudo apt-key advanced --keyserver keys.gnupg.net --recv-keys AF380A3036A03444
echo "deb https://releases.wikimedia.org/debian jessie-mediawiki main" | sudo tee /etc/apt/sources.list.d/parsoid.list
sudo apt install apt-transport-https -y
sudo apt update && sudo apt install parsoid -y

이제 Parsoid설정파일을 수정해야 합니다.

/etc/mediawiki/parsoid/config.yaml를 열고,

uri: 'http://localhost/w/api.php'비슷한 라인을 찾아 주석처리가 되어있으면 풀어줍니다.

그러고 나서, url를 api.php가 있는 위치로 바꿉니다.

domain도 바꾸어 줍니다.

79번 라인 근처에 보면 주석처리 되어있는 serverPort:8000을 주석해제 해 줍니다

저장한 후

service parsoid restart 또는

/etc/init.d/parsoid restart으로 Parsoid를 재시작하고

위키에서 편집하기를 누르면 끝!

참고주소

https://www.mediawiki.org/wiki/Parsoid/Setup#Configuration

https://www.mediawiki.org/wiki/Parsoid/Setup#Configuration

https://www.mediawiki.org/wiki/Extension:VisualEditor

리브레 스킨이 visual editor를 지원하기를 빕니다...

신고공유스크랩
3

사실 비주얼 에디터는 몇번씩 설치를 시도해 봤었는데요. 일던 스킨의 미지원, 서버 사양 부족 등으로 인해 현재는 포기했어요. ㅠㅠ

 

나중에 스킨 지원 + 서버 업그레이드를 한다면 이 글을 참고해서 다시 한번 더 시도해 볼게요.

20.01.04. 11:39

https://bbs.gaonwiki.com/notice/4064 완료했습니다.

22.04.24. 18:50

댓글 쓰기 권한이 없습니다. 로그인

취소 댓글 등록

신고

"님의 댓글"

이 댓글을 신고하시겠습니까?

댓글 삭제

"님의 댓글"

삭제하시겠습니까?

목록

공유

facebooktwitterpinterestbandkakao story

주간 조회 수 인기글

주간 추천 수 인기글