https://github.com/easylogic/gnuboard5-summernote
그누보드5 를 위한 Summernote 에디터 플러그인
https://github.com/easylogic/gnuboard5-summernote
Last synced: 5 days ago
JSON representation
그누보드5 를 위한 Summernote 에디터 플러그인
- Host: GitHub
- URL: https://github.com/easylogic/gnuboard5-summernote
- Owner: easylogic
- License: mit
- Created: 2015-05-18T03:25:49.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-22T02:40:29.000Z (about 9 years ago)
- Last Synced: 2024-10-29T16:13:06.852Z (6 months ago)
- Language: JavaScript
- Size: 240 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-summernote - gnuboard5-summernote
README
# gnuboard5-summernote
그누보드5 를 위한 Summernote 에디터 플러그인bootstrap 을 사용하는 위지윅 에디터를 gnuboard 플러그인 형태로 구성하였습니다.
## 플러그인 적용
* 다운로드 : https://github.com/easylogic/gnuboard5-summernote/archive/master.zip
* git clone : https://github.com/easylogic/gnuboard5-summernote.git두가지 형태로 소스를 받은 후에
gnuboard 의 `plugin/editor/` 디렉토리에 넣어주세요.
## 플러그인 사용[관리자 모드 > 환경 설정 > 기본 환경 설정] 메뉴의 [홈페이지 기본환경 설정 > 에디터 선택] 에서 summernote 를 선택해주세요.
## auto save 적용하기
* gnuboard v5.1.2 부터는 auto save 설정없이 사용하실 수 있습니다.
* 그 이하 버전에서는 아래 절차를 따라 주세요.auto save 를 적용 하기 위해서는 하드 코딩이 필요합니다.
일단 /js/autosave.js 를 열어서 아래 2가지를 추가 해주세요.
```javascript
function autosave () {
...
// summernote data 설정
} else if (g5_editor.indexOf("summernote") != -1 ) {
this.wr_content.value = $("#wr_content").code();
}
...
}// autosave 내용 로드
$(document).on( "click", ".autosave_load", function(){
...
// summernote 내용 로드
} else if (g5_editor.indexOf("summernote") != -1 ) {
$("#wr_content").code(content);
}
...
}```