Skip to content

Commit

Permalink
fix: image plugin style, link, modify: language , HTML title attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed Sep 19, 2018
1 parent 8b9187a commit 83f40c8
Show file tree
Hide file tree
Showing 17 changed files with 75 additions and 50 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "suneditor",
"version": "2.0.9",
"version": "2.0.10",
"description": "Pure JavaScript based WYSIWYG web editor",
"main": "src/suneditor.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion dist/css/suneditor.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/suneditor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sideEffects": [
"./src/assets/css/*.css"
],
"version": "2.0.9",
"version": "2.0.10",
"description": "Pure JavaScript based WYSIWYG web editor",
"main": "src/suneditor.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion sample/build/suneditor.customize.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 22 additions & 1 deletion src/assets/css/suneditor-contents.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@
margin: 0;
}

/* float */
.sun-editor-editable .float-left {
float: left;
}
.sun-editor-editable .float-right {
float: right;
}
.sun-editor-editable .float-center {
float: center;
}
.sun-editor-editable .float-none {
float: none;
}

/* hr */
.sun-editor-editable hr {
border-width: 1px 0 0;
Expand Down Expand Up @@ -48,6 +62,9 @@
}

/* image */
.sun-editor-editable .sun-editor-id-image-container {
text-align: center;
}
.sun-editor-editable .sun-editor-id-image-container figcaption {
padding: 1em .5em;
font-size: 13px;
Expand All @@ -57,6 +74,11 @@
line-height: 2;
margin: 0;
}
.sun-editor-editable .sun-editor-id-image-container a img {
padding: 1px;
margin: 1px;
outline: 1px solid #8baab7;
}
.sun-editor-editable .sun-editor-image-cover {
outline: none;
line-height: 0;
Expand All @@ -65,7 +87,6 @@
background-color: #f3f3f3;
}


/** video iframe tags */
.sun-editor-editable .sun-editor-iframe-cover {
display: inline-block;
Expand Down
14 changes: 9 additions & 5 deletions src/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ export default {
orderList: 'Ordered list',
unorderList: 'Unordered list',
horizontalRule: 'horizontal line',
hr_solid: 'solid',
hr_dotted: 'dotted',
hr_dashed: 'dashed',
table: 'Table',
link: 'Link',
image: 'Image',
Expand Down Expand Up @@ -63,11 +66,12 @@ export default {
title: 'Insert Video',
url: 'Media embed URL, YouTube'
},
resize100: 'resize 100%',
resize75: 'resize 75%',
resize50: 'resize 50%',
resize25: 'resize 25%',
remove: 'remove',
resize100: 'Resize 100%',
resize75: 'Resize 75%',
resize50: 'Resize 50%',
resize25: 'Resize 25%',
close: 'Close',
remove: 'Remove',
submitButton: 'Submit',
revertButton: 'Revert',
proportion: 'constrain proportions',
Expand Down
4 changes: 4 additions & 0 deletions src/lang/ko.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export default {
orderList: '숫자형 불릿',
unorderList: '원형 불릿',
horizontalRule: '가로 줄 삽입',
hr_solid: '실선',
hr_dotted: '점선',
hr_dashed: '대시',
table: '테이블',
link: '링크',
image: '이미지',
Expand Down Expand Up @@ -60,6 +63,7 @@ export default {
resize75: '75% 크기',
resize50: '50% 크기',
resize25: '25% 크기',
close: '닫기',
remove: '삭제',
submitButton: '확인',
revertButton: '되돌리기',
Expand Down
Loading

0 comments on commit 83f40c8

Please sign in to comment.