Initial commit

This commit is contained in:
Khanh Ngo
2015-12-13 16:34:12 +07:00
commit 2dac8205f6
3113 changed files with 514935 additions and 0 deletions

View File

@ -0,0 +1,26 @@
## Bootstrap Markdown
Markdown editing meet Bootstrap.
| Version | Compatibility with Bootstrap |
| :---: | :---: |
| Bootstrap Markdown v2.x | **only** compatible with Bootstrap 3.x |
| Bootstrap Markdown v1.x | **only** compatible with Bootstrap 2.x |
Demo and documentation on [http://toopay.github.com/bootstrap-markdown/](http://toopay.github.com/bootstrap-markdown/)
### LICENSE
> Copyright 2013-2014 Taufan Aditya
>
> Licensed under the Apache License, Version 2.0 (the "License");
> you may not use this file except in compliance with the License.
> You may obtain a copy of the License at
>
> http://www.apache.org/licenses/LICENSE-2.0
>
> Unless required by applicable law or agreed to in writing, software
> distributed under the License is distributed on an "AS IS" BASIS,
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> See the License for the specific language governing permissions and
> limitations under the License.

View File

@ -0,0 +1,11 @@
{
"name": "bootstrap-markdown",
"version": "2.7.0",
"main": ["./js/bootstrap-markdown.js", "./css/bootstrap-markdown.min.css"],
"dependencies": {
"bootstrap": "~3.1.1"
},
"devDependencies": {
"markdown":"~0.4.0"
}
}

View File

@ -0,0 +1 @@
.md-editor{display:block;border:1px solid #ddd}.md-editor .md-footer,.md-editor>.md-header{display:block;padding:6px 4px;background:#f5f5f5}.md-editor>.md-header{margin:0}.md-editor>.md-preview{background:#fff;border-top:1px dashed #ddd;border-bottom:1px dashed #ddd;min-height:10px;overflow:auto}.md-editor>textarea{font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:14px;outline:0;margin:0;display:block;padding:0;width:100%;border:0;border-top:1px dashed #ddd;border-bottom:1px dashed #ddd;border-radius:0;box-shadow:none;background:#eee}.md-editor>textarea:focus{box-shadow:none;background:#fff}.md-editor.active{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.md-editor .md-controls{float:right;padding:3px}.md-editor .md-controls .md-control{right:5px;color:#bebebe;padding:3px 3px 3px 10px}.md-editor .md-controls .md-control:hover{color:#333}.md-editor.md-fullscreen-mode{width:100%;height:100%;position:fixed;top:0;left:0;z-index:99999;padding:60px 30px 15px;background:#fff!important;border:0!important}.md-editor.md-fullscreen-mode .md-footer{display:none}.md-editor.md-fullscreen-mode .md-input,.md-editor.md-fullscreen-mode .md-preview{margin:0 auto!important;height:100%!important;font-size:20px!important;padding:20px!important;color:#999;line-height:1.6em!important;resize:none!important;box-shadow:none!important;background:#fff!important;border:0!important}.md-editor.md-fullscreen-mode .md-preview{color:#333;overflow:auto}.md-editor.md-fullscreen-mode .md-input:focus,.md-editor.md-fullscreen-mode .md-input:hover{color:#333;background:#fff!important}.md-editor.md-fullscreen-mode .md-header{background:0 0;text-align:center;position:fixed;width:100%;top:20px}.md-editor.md-fullscreen-mode .btn-group{float:none}.md-editor.md-fullscreen-mode .btn{border:0;background:0 0;color:#b3b3b3}.md-editor.md-fullscreen-mode .btn.active,.md-editor.md-fullscreen-mode .btn:active,.md-editor.md-fullscreen-mode .btn:focus,.md-editor.md-fullscreen-mode .btn:hover{box-shadow:none;color:#333}.md-editor.md-fullscreen-mode .md-fullscreen-controls{position:absolute;top:20px;right:20px;text-align:right;z-index:1002;display:block}.md-editor.md-fullscreen-mode .md-fullscreen-controls a{color:#b3b3b3;clear:right;margin:10px;width:30px;height:30px;text-align:center}.md-editor.md-fullscreen-mode .md-fullscreen-controls a:hover{color:#333;text-decoration:none}.md-editor.md-fullscreen-mode .md-editor{height:100%!important;position:relative}.md-editor .md-fullscreen-controls{display:none}.md-nooverflow{overflow:hidden;position:fixed;width:100%}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,180 @@
/**
* Bootstrap-Markdown.less
*
* @author Taufan Aditya @taufanaditya
* @copyright 2013 Taufan Aditya
*/
.md-editor {
display: block;
border: 1px solid @table-border-color;
> .md-header, .md-footer {
display: block;
padding: 6px 4px;
background: @panel-default-heading-bg;
}
> .md-header {
margin: 0;
}
> .md-preview {
background: @panel-bg;
border-top: 1px dashed @table-border-color;
border-bottom: 1px dashed @table-border-color;
min-height: 10px;
overflow: auto;
}
> textarea {
font-family: @font-family-monospace;
font-size: @font-size-base;
outline: 0;
outline: thin dotted \9; /* IE6-9 */
margin: 0;
display: block;
padding: 0;
width: 100%;
border: 0;
border-top: 1px dashed @table-border-color;
border-bottom: 1px dashed @table-border-color;
border-radius: 0;
box-shadow: none;
background: @input-bg-disabled;
&:focus {
box-shadow: none;
background: @input-bg;
}
}
// Hover state
@color: @input-border-focus;
@color-rgba: rgba(red(@color), green(@color), blue(@color), .6);
&.active {
border-color: @color;
outline: 0;
.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px @{color-rgba}");
}
.md-controls {
float: right;
padding: 3px;
.md-control {
right: 5px;
color: #bebebe;
padding: 3px 3px 3px 10px;
&:hover {
color: #333;
}
}
}
// fullscreen mode styles
&.md-fullscreen-mode {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 99999;
padding: 60px 30px 15px;
background: #fff !important;
border: 0 !important;
.md-footer {
display: none;
}
.md-input,
.md-preview {
margin: 0 auto !important;
height: 100% !important;
font-size: 20px !important;
padding: 20px !important;
color: #999;
line-height: 1.6em !important;
resize: none !important;
box-shadow: none !important;
background: #fff !important;
border: 0 !important;
}
.md-preview {
color: #333;
overflow: auto;
}
.md-input {
&:hover,
&:focus {
color: #333;
background: #fff !important;
}
}
.md-header {
background: none;
text-align: center;
position: fixed;
width: 100%;
top: 20px;
}
.btn-group {
float: none;
}
.btn {
border: 0;
background: none;
color: #b3b3b3;
&:hover,
&:focus,
&.active,
&:active {
box-shadow: none;
color: #333;
}
}
.md-fullscreen-controls {
position: absolute;
top: 20px;
right: 20px;
text-align: right;
z-index: 1002;
display: block;
a {
color: #b3b3b3;
clear: right;
margin: 10px;
width: 30px;
height: 30px;
text-align: center;
&:hover {
color: #333;
text-decoration: none;
}
}
}
.md-editor {
height: 100% !important;
position: relative;
}
}
.md-fullscreen-controls {
display: none;
}
}
.md-nooverflow {
overflow: hidden;
position: fixed;
width: 100%;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,24 @@
/**
* French translation for bootstrap-markdown
* Benoît Bourgeois <bierdok@gmail.com>
*/
(function ($) {
$.fn.markdown.messages.fr = {
'Bold': "Gras",
'Italic': "Italique",
'Heading': "Titre",
'URL/Link': "Insérer un lien HTTP",
'Image': "Insérer une image",
'List': "Liste à puces",
'Preview': "Prévisualiser",
'strong text': "texte important",
'emphasized text': "texte souligné",
'heading text': "texte d'entête",
'enter link description here': "entrez la description du lien ici",
'Insert Hyperlink': "Insérez le lien hypertexte",
'enter image description here': "entrez la description de l'image ici",
'Insert Image Hyperlink': "Insérez le lien hypertexte de l'image",
'enter image title here': "entrez le titre de l'image ici",
'list text here': "texte à puce ici"
};
}(jQuery));

View File

@ -0,0 +1,24 @@
+/**
+ * Korean translation for bootstrap-markdown
+ * WoongBi Kim <ssinss@gmail.com>
+ */
;(function($){
$.fn.markdown.messages['kr'] = {
'Bold': "진하게",
'Italic': "이탤릭체",
'Heading': "머리글",
'URL/Link': "링크주소",
'Image': "이미지",
'List': "리스트",
'Preview': "미리보기",
'strong text': "강한 강조 텍스트",
'emphasized text': "강조 텍스트",
'heading text': "머리글 텍스트",
'enter link description here': "여기에 링크의 설명을 적으세요",
'Insert Hyperlink': "하이퍼링크 삽입",
'enter image description here': "여기세 이미지 설명을 적으세요",
'Insert Image Hyperlink': "이미지 링크 삽입",
'enter image title here': "여기에 이미지 제목을 적으세요",
'list text here': "리스트 텍스트"
};
}(jQuery))

View File

@ -0,0 +1,24 @@
/**
* Norwegian bokmål translation for bootstrap-markdown
* Tobias Bohwalli <hi@futhr.io>
*/
(function ($) {
$.fn.markdown.messages.nb = {
'Bold': 'Fet',
'Italic': 'Kursiv',
'Heading': 'Overskrift',
'URL/Link': 'URL/Lenke',
'Image': 'Bilde',
'List': 'Liste',
'Preview': 'Forhåndsvisning',
'strong text': 'sterk tekst',
'emphasized text': 'streket tekst',
'heading text': 'overskriften tekst',
'enter link description here': 'Skriv linken beskrivelse her',
'Insert Hyperlink': 'Sett inn lenke',
'enter image description here': 'Angi bildebeskrivelse her',
'Insert Image Hyperlink': 'Sett inn lenke for bilde',
'enter image title here': 'Angi bildetittel her',
'list text here': 'liste tekst her'
};
}(jQuery));

View File

@ -0,0 +1,24 @@
/**
* Dutch translation for bootstrap-markdown
* Jeroen Thora <jeroenthora@gmail.com>
*/
(function ($) {
$.fn.markdown.messages.nl = {
'Bold': "Vet",
'Italic': "Cursief",
'Heading': "Titel",
'URL/Link': "URL/Link",
'Image': "Afbeelding",
'List': "Lijst",
'Preview': "Voorbeeld",
'strong text': "vet gedrukte tekst",
'emphasized text': "schuin gedrukte tekst",
'heading text': "Titel",
'enter link description here': "Voer een link beschrijving in",
'Insert Hyperlink': "Voer een http link in",
'enter image description here': "Voer een afbeelding beschrijving in",
'Insert Image Hyperlink': "Voer een afbeelding link in",
'enter image title here': "Voer de afbeelding titel in",
'list text here': "lijst item"
};
}(jQuery));

View File

@ -0,0 +1,24 @@
/**
* Russian translation for bootstrap-markdown
* by Oleg Vivtash <o@vivtash.net>
*/
;(function($){
$.fn.markdown.messages['ru'] = {
'Bold': "Жирный",
'Italic': "Курсив",
'Heading': "Заголовок",
'URL/Link': "Вставьте ссылку",
'Image': "Изображение",
'List': "Список",
'Preview': "Предварительный просмотр",
'strong text': "выделенный текст",
'emphasized text': "наклонный текст",
'heading text': "текст заголовка",
'enter link description here': "введите описание ссылки",
'Insert Hyperlink': "Введите гиперссылку",
'enter image description here': "Введите описание изображения",
'Insert Image Hyperlink': "Вставьте ссылку на изображение",
'enter image title here': "Введите название изображения",
'list text here': "текст списка"
};
}(jQuery))

View File

@ -0,0 +1,24 @@
/**
* Swedish translation for bootstrap-markdown
* Tobias Bohwalli <hi@futhr.io>
*/
(function ($) {
$.fn.markdown.messages.sv = {
'Bold': 'Fet',
'Italic': 'Kursiv',
'Heading': 'Rubrik',
'URL/Link': 'URL/Länk',
'Image': 'Bild',
'List': 'Lista',
'Preview': 'Förhandsgranska',
'strong text': 'fet text',
'emphasized text': 'överstruken text',
'heading text': 'Rubrik',
'enter link description here': 'Ange länk beskrivning här',
'Insert Hyperlink': 'Sätt in länk',
'enter image description here': 'Ange bild beskrivning här',
'Insert Image Hyperlink': 'Sätt in länk för bild',
'enter image title here': 'Ange bild rubrik här',
'list text here': 'list text'
};
}(jQuery));

View File

@ -0,0 +1,31 @@
/**
* Turkish translation for bootstrap-markdown
* Serkan Algur <info@wpadami.com>
*/
(function ($) {
$.fn.markdown.messages.tr = {
'Bold': "Kalın",
'Italic': "İtalik",
'Heading': "Başlık",
'URL/Link': "Link ekle",
'Image': "Resim ekle",
'List': "Liste Oluşturun",
'Preview': "Önizleme",
'strong text': "kalın yazı",
'emphasized text': "italik yazı",
'heading text': "Başlık Yazısı",
'enter link description here': "Link açıklamasını buraya girin",
'Insert Hyperlink': "İnternet adresi girin",
'enter image description here': "resim açıklamasını buraya ekleyin",
'Insert Image Hyperlink': "Resim linkini ekleyin",
'enter image title here': "resim başlığını buraya ekleyin",
'list text here': "liste yazısı",
'Save' : "Kaydet",
'Ordered List' : "Numaralı Liste",
'Unordered List' : "Madde imli liste",
'Quote' : "Alıntı",
'quote here' : "alıntıyı buraya ekleyin",
'Code' : "Kod",
'code text here' : "kodu buraya ekleyin"
};
}(jQuery));

View File

@ -0,0 +1,24 @@
/**
* Ukrainian translation for bootstrap-markdown
* by Oleg Vivtash <o@vivtash.net>
*/
;(function($){
$.fn.markdown.messages['ua'] = {
'Bold': "Жирний",
'Italic': "Курсів",
'Heading': "Заголовок",
'URL/Link': "Вставте посилання",
'Image': "Зображення",
'List': "Список",
'Preview': "Попередній перегляд",
'strong text': "виділений текст",
'emphasized text': "нахилений текст",
'heading text': "текст заголовку",
'enter link description here': "введіть опис посилання",
'Insert Hyperlink': "Введіть гіперпосилання",
'enter image description here': "Введіть опис зображення",
'Insert Image Hyperlink': "Вставте посилання на зображення",
'enter image title here': "Введіть назву зображення",
'list text here': "текст списку"
};
}(jQuery))

View File

@ -0,0 +1,21 @@
{
"name": "bootstrap-markdown",
"filename": "js/bootstrap-markdown.js",
"version": "2.7.0",
"description": "A bootstrap plugin for markdown editing",
"homepage": "https://github.com/toopay/bootstrap-markdown",
"keywords": [
"twitter",
"bootstrap",
"markdown",
"editor"
],
"maintainers": [{
"name": "Taufan Aditya",
"web": "https://github.com/toopay"
}],
"repositories": [{
"type": "git",
"url": "https://github.com/toopay/bootstrap-markdown.git"
}]
}