Skip to content

Commit

Permalink
fix style error of colorpicker, ul and ol
Browse files Browse the repository at this point in the history
  • Loading branch information
YaoKaiLun committed Oct 10, 2017
1 parent a4399e0 commit c49ec75
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 9 deletions.
1 change: 1 addition & 0 deletions lib/ReactUeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ var ReactUeditor = function (_React$Component) {
if (props.uploadImage) {
props.uploadImage(e);
}
tempfileInput.value = '';
}
}, {
key: 'initEditor',
Expand Down
1 change: 1 addition & 0 deletions src/ReactUeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ class ReactUeditor extends React.Component {
if (props.uploadImage) {
props.uploadImage(e)
}
tempfileInput.value = ''
}

static insertImage(imageUrl) {
Expand Down
2 changes: 1 addition & 1 deletion ueditor/_src/plugins/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ UE.plugins['list'] = function () {
customCss.push('.list-paddingleft-2{padding-left:'+me.options.listDefaultPaddingLeft+'px}');
customCss.push('.list-paddingleft-3{padding-left:'+me.options.listDefaultPaddingLeft*2+'px}');
//如果不给宽度会在自定应样式里出现滚动条
utils.cssRule('list', 'ol,ul{margin:0;pading:0;'+(browser.ie ? '' : 'width:95%')+'}li{clear:both;}'+customCss.join('\n'), me.document);
utils.cssRule('list', 'ol,ul{box-sizing:border-box;margin:0;pading:0;'+(browser.ie ? '' : 'width:95%')+'}li{clear:both;}'+customCss.join('\n'), me.document);
});
//单独处理剪切的问题
me.ready(function(){
Expand Down
2 changes: 2 additions & 0 deletions ueditor/themes/default/_css/colorpicker.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
margin-left: 1px;
width: 128px;
float: left;
box-sizing: content-box;
}

.edui-default .edui-colorpicker-nocolor {
Expand All @@ -22,6 +23,7 @@
border: 1px solid #333;
padding: 3px 5px;
cursor: pointer;
box-sizing: content-box;
}

.edui-default .edui-colorpicker-tablefirstrow {
Expand Down
2 changes: 2 additions & 0 deletions vendor/ueditor/themes/default/css/ueditor.css
Original file line number Diff line number Diff line change
Expand Up @@ -1558,6 +1558,7 @@ div.edui-box {
margin-left: 1px;
width: 128px;
float: left;
box-sizing: content-box;
}

.edui-default .edui-colorpicker-nocolor {
Expand All @@ -1569,6 +1570,7 @@ div.edui-box {
border: 1px solid #333;
padding: 3px 5px;
cursor: pointer;
box-sizing: content-box;
}

.edui-default .edui-colorpicker-tablefirstrow {
Expand Down
4 changes: 2 additions & 2 deletions vendor/ueditor/themes/default/css/ueditor.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions vendor/ueditor/ueditor.all.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* UEditor
* version: ueditor
* build: Sun Oct 01 2017 23:13:56 GMT+0800 (CST)
* build: Tue Oct 10 2017 23:17:02 GMT+0800 (CST)
*/

(function(){
Expand Down Expand Up @@ -15066,7 +15066,7 @@ UE.plugins['list'] = function () {
customCss.push('.list-paddingleft-2{padding-left:'+me.options.listDefaultPaddingLeft+'px}');
customCss.push('.list-paddingleft-3{padding-left:'+me.options.listDefaultPaddingLeft*2+'px}');
//如果不给宽度会在自定应样式里出现滚动条
utils.cssRule('list', 'ol,ul{margin:0;pading:0;'+(browser.ie ? '' : 'width:95%')+'}li{clear:both;}'+customCss.join('\n'), me.document);
utils.cssRule('list', 'ol,ul{box-sizing:border-box;margin:0;pading:0;'+(browser.ie ? '' : 'width:95%')+'}li{clear:both;}'+customCss.join('\n'), me.document);
});
//单独处理剪切的问题
me.ready(function(){
Expand Down
4 changes: 2 additions & 2 deletions vendor/ueditor/ueditor.all.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendor/ueditor/ueditor.parse.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* UEditor
* version: ueditor
* build: Sun Oct 01 2017 23:13:56 GMT+0800 (CST)
* build: Tue Oct 10 2017 23:17:02 GMT+0800 (CST)
*/

(function(){
Expand Down
2 changes: 1 addition & 1 deletion vendor/ueditor/ueditor.parse.min.js

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

0 comments on commit c49ec75

Please sign in to comment.