KE的几个问题修改

1.我要回复
2.段落颜色
3.变粗滚动条移动
4.没默认字体
This commit is contained in:
yuanke 2016-03-09 10:16:27 +08:00
parent 6e21229b4c
commit e073d58169
7 changed files with 15 additions and 5 deletions

View File

@ -2765,7 +2765,7 @@ _extend(KCmd, {
sel.addRange(rng);
if (doc !== document) {
var pos = K(rng.endContainer).pos();
win.scrollTo(pos.x, pos.y);
//win.scrollTo(pos.x, pos.y);
}
}
win.focus();

View File

@ -1,5 +1,6 @@
.ke-content {
font-size: 10pt;
font-family:Tahoma;
}
.ke-content pre {
font-size:9pt;

View File

@ -98,6 +98,9 @@ KindEditor.plugin('image', function(K) {
yesBtn : {
name : self.lang('yes'),
click : function(e) {
if(/^\s*<\w*\s*\w*\=\"\w*\"\s*\w*\=\"\w*\:\s*\#\d*\;\s*\w*\-\w*\:\s*\w*\;\"\>[\u4e00-\u9fa5]*<\/\w*\>\s*$/.test(self.edit.html())){
self.edit.html('');
}
// Bugfix: http://code.google.com/p/kindeditor/issues/detail?id=319
if (dialog.isLoading) {
return;

View File

@ -47,6 +47,9 @@ KindEditor.plugin('media', function(K) {
yesBtn : {
name : self.lang('yes'),
click : function(e) {
if(/^\s*<\w*\s*\w*\=\"\w*\"\s*\w*\=\"\w*\:\s*\#\d*\;\s*\w*\-\w*\:\s*\w*\;\"\>[\u4e00-\u9fa5]*<\/\w*\>\s*$/.test(self.edit.html())){
self.edit.html('');
}
var url = K.trim(urlBox.val()),
width = widthBox.val(),
height = heightBox.val();

View File

@ -25,7 +25,7 @@ KindEditor.plugin('preview', function(K) {
doc.open();
doc.write(self.fullHtml());
doc.close();
K(doc.body).css('background-color', '#FFF');
K(doc.body).css({'background-color': '#FFF','word-break':'break-all','word-wrap':'wrap-all'});
iframe[0].contentWindow.focus();
});
});

View File

@ -129,6 +129,9 @@ KindEditor.plugin('table', function(K) {
yesBtn : {
name : self.lang('yes'),
click : function(e) {
if(/^\s*<\w*\s*\w*\=\"\w*\"\s*\w*\=\"\w*\:\s*\#\d*\;\s*\w*\-\w*\:\s*\w*\;\"\>[\u4e00-\u9fa5]*<\/\w*\>\s*$/.test(self.edit.html())){
self.edit.html('');
}
var rows = rowsBox.val(),
cols = colsBox.val(),
width = widthBox.val(),

View File

@ -32,9 +32,9 @@ table{ background:#fff;}
.min_search{ width:150px; height:20px; border:1px solid #d0d0d0; color:#666; background:url(../images/public_icon.png) 135px -193px no-repeat; cursor:pointer;}
.db {display:block;}
/* font & color */
h2{ font-size:18px; color:#269ac9;}
h3{ font-size:14px; color:#e8770d;}
h4{ font-size:14px; color:#3b3b3b;}
h2{ font-size:18px; } /*color:#269ac9;*/
h3{ font-size:14px;}/* color:#e8770d;*/
h4{ font-size:14px; }/*color:#3b3b3b;*/
.f12{font-size:12px; font-weight:normal;}
.f14{font-size:14px;}
.f16{font-size:16px;}