Skip to content

Commit

Permalink
README.md fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
shiren committed Aug 28, 2015
1 parent 3a6b613 commit bdeaf84
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ bower install git@github.com:shiren/neon-editor.git#develop
```

bower를 이용하시거나 리포의 dist폴더의 내용에서 필요한 파일들을 다운로드 하셔도 됩니다.
디펜던시 모듈 정보는 bower.json을 참고 바랍니다.
디펜던시 라이브러리설치 편의를 위해서는 bower를 이용하는 편이 좋습니다.
이후 업데이트는 아래와같이 할수있습니다.

Expand All @@ -15,12 +16,12 @@ bower update
## 임시 설치 가이드

현재 에디터가 개발중에 있습니다. 미리 에디터를 적용하기 위한 임시 배포입니다.
*demo/*디렉토리의 demoDist.html파일을 참고하시면 간단한 설치 예제가 있습니다.
디펜던시 스크립트들을 로드한후 에디터스크립트를 로드합니다.
그리고 dist디렉토리의 neonEditor.css와 contentStyle.css를 링크해야합니다.
neonEditor.css는 에디터에 필요한 css스타일들이고
contentStyle.css는 wysiwyg에디터나 preview에서 보여질 컨텐트의 스타일들입니다.
contentStyle.css는 기호에 맞게 수정하실수 있으며 에디터를 통해 만들어진 컨텐츠를 보여줄때 같은 내용을 사용하실수 있습니다.(css파일 내용 참고)
아래 예제를 확인 바랍니다.

``` html
<!DOCTYPE html>
Expand All @@ -34,12 +35,12 @@ contentStyle.css는 기호에 맞게 수정하실수 있으며 에디터를 통
<script src="bower_components/toMark/dist/toMark.js"></script>
<script src="bower_components/codemirror/lib/codemirror.js"></script>
<script src="bower_components/highlightjs/highlight.pack.js"></script>
<script src="bower_components/squire-rte/build/squire-raw.js"></script>
<script src="../dist/neonEditor.min.js"></script>
<script src="bower_components/Squire/build/squire-raw.js"></script>
<script src="bower_components/neonEditor/dist/neonEditor.min.js"></script>
<link rel="stylesheet" href="bower_components/codemirror/lib/codemirror.css">
<link rel="stylesheet" href="bower_components/highlightjs/styles/github.css">
<link rel="stylesheet" href="bower_components/neon-editor/dist/neonEditor.css">
<link rel="stylesheet" href="bower_components/neon-editor/dist/contentStyle.css">
<link rel="stylesheet" href="bower_components/neonEditor/dist/neonEditor.css">
<link rel="stylesheet" href="bower_components/neonEditor/dist/contentStyle.css">
</head>
<body>
<div id="editSection"></div>
Expand All @@ -49,7 +50,7 @@ contentStyle.css는 기호에 맞게 수정하실수 있으며 에디터를 통
previewStyle: 'tab',
height: 300,
contentCSSStyles: [
'../dist/contentStyle.css'
'bower_components/neonEditor/dist/contentStyle.css'
]
});
</script>
Expand Down
4 changes: 2 additions & 2 deletions demo/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<script src="../lib/ne-code-snippet/code-snippet.js"></script>
<script src="../lib/codemirror/lib/codemirror.js"></script>
<script src="../lib/highlightjs/highlight.pack.js"></script>
<script src="../lib/squire-rte/build/squire-raw.js"></script>
<script src="../lib/Squire/build/squire-raw.js"></script>
<link rel="stylesheet" href="../lib/codemirror/lib/codemirror.css">
<link rel="stylesheet" href="../lib/highlightjs/styles/github.css">
<link rel="stylesheet" href="../src/css/style.css">
<link rel="stylesheet" href="../src/css/neonEditor.css">
<link rel="stylesheet" href="../src/css/contentStyle.css">
<style type="text/css">
.cm-header { color:blue; }
Expand Down
2 changes: 1 addition & 1 deletion demo/demoDist.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script src="../lib/toMark/dist/toMark.js"></script>
<script src="../lib/codemirror/lib/codemirror.js"></script>
<script src="../lib/highlightjs/highlight.pack.js"></script>
<script src="../lib/squire-rte/build/squire-raw.js"></script>
<script src="../lib/Squire/build/squire-raw.js"></script>
<script src="../dist/neonEditor.min.js"></script>
<link rel="stylesheet" href="../lib/codemirror/lib/codemirror.css">
<link rel="stylesheet" href="../lib/highlightjs/styles/github.css">
Expand Down

0 comments on commit bdeaf84

Please sign in to comment.