提交 caae0b92 编写于 作者: H hancong03

Merge branch 'dev-1.2.5' of github.com:campaign/ueditor into dev-1.2.5

......@@ -46,9 +46,9 @@
}
if (!textarea) {
form.appendChild(textarea = domUtils.createElement(document, 'textarea', {
'name':editor.options.textarea,
'id':'ueditor_textarea_' + editor.options.textarea,
'style':"display:none"
'name': editor.options.textarea,
'id': 'ueditor_textarea_' + editor.options.textarea,
'style': "display:none"
}));
//不要产生多个textarea
editor.textarea = textarea;
......@@ -80,38 +80,38 @@
me.outputRules = [];
//设置默认的常用属性
me.setOpt({
isShow:true,
initialContent:'欢迎使用ueditor!',
autoClearinitialContent:false,
iframeCssUrl:me.options.UEDITOR_HOME_URL + 'themes/iframe.css',
textarea:'editorValue',
focus:false,
focusInEnd:true,
initialFrameWidth:1000,
initialFrameHeight:me.options.minFrameHeight || 320, //兼容老版本配置项
minFrameWidth:800,
minFrameHeight:220,
autoClearEmptyNode:true,
fullscreen:false,
readonly:false,
zIndex:999,
imagePopup:true,
enterTag:'p',
customDomain:false,
lang:'zh-cn',
langPath:me.options.UEDITOR_HOME_URL + 'lang/',
theme:'default',
themePath:me.options.UEDITOR_HOME_URL + 'themes/',
allHtmlEnabled:false,
scaleEnabled:false,
tableNativeEditInFF:false
isShow: true,
initialContent: '欢迎使用ueditor!',
autoClearinitialContent: false,
iframeCssUrl: me.options.UEDITOR_HOME_URL + 'themes/iframe.css',
textarea: 'editorValue',
focus: false,
focusInEnd: true,
initialFrameWidth: 1000,
initialFrameHeight: me.options.minFrameHeight || 320, //兼容老版本配置项
minFrameWidth: 800,
minFrameHeight: 220,
autoClearEmptyNode: true,
fullscreen: false,
readonly: false,
zIndex: 999,
imagePopup: true,
enterTag: 'p',
customDomain: false,
lang: 'zh-cn',
langPath: me.options.UEDITOR_HOME_URL + 'lang/',
theme: 'default',
themePath: me.options.UEDITOR_HOME_URL + 'themes/',
allHtmlEnabled: false,
scaleEnabled: false,
tableNativeEditInFF: false
});
utils.loadFile(document, {
src:me.options.langPath + me.options.lang + "/" + me.options.lang + ".js",
tag:"script",
type:"text/javascript",
defer:"defer"
src: me.options.langPath + me.options.lang + "/" + me.options.lang + ".js",
tag: "script",
type: "text/javascript",
defer: "defer"
}, function () {
//初始化插件
for (var pi in UE.plugins) {
......@@ -136,7 +136,7 @@
* editor.setContent("欢迎使用UEditor!");
* })
*/
ready:function (fn) {
ready: function (fn) {
var me = this;
if (fn) {
me.isReady ? fn.apply(me) : me.addListener('ready', fn);
......@@ -147,7 +147,7 @@
* @grammar editor.setOpt(key,value); //传入一个键、值对
* @grammar editor.setOpt({ key:value}); //传入一个json对象
*/
setOpt:function (key, val) {
setOpt: function (key, val) {
var obj = {};
if (utils.isString(key)) {
obj[key] = val
......@@ -161,7 +161,7 @@
* @name destroy
* @grammar editor.destroy();
*/
destroy:function () {
destroy: function () {
var me = this;
me.fireEvent('destroy');
......@@ -194,7 +194,7 @@
* @grammar editor.render(containerId); //可以指定一个容器ID
* @grammar editor.render(containerDom); //也可以直接指定容器对象
*/
render:function (container) {
render: function (container) {
var me = this, options = me.options;
if (utils.isString(container)) {
container = document.getElementById(container);
......@@ -217,11 +217,11 @@
if (options.customDomain && document.domain != location.hostname) {
html += '<script>window.parent.UE.instants[\'ueditorInstant' + me.uid + '\']._setup(document);</script></html>';
container.appendChild(domUtils.createElement(document, 'iframe', {
id:'baidu_editor_' + me.uid,
width:"100%",
height:"100%",
frameborder:"0",
src:'javascript:void(function(){document.open();document.domain="' + document.domain + '";' +
id: 'baidu_editor_' + me.uid,
width: "100%",
height: "100%",
frameborder: "0",
src: 'javascript:void(function(){document.open();document.domain="' + document.domain + '";' +
'document.write("' + html + '");document.close();}())'
}));
} else {
......@@ -242,7 +242,7 @@
* @ignore
* @param {Element} doc 编辑器Iframe中的文档对象
*/
_setup:function (doc) {
_setup: function (doc) {
var me = this,
options = me.options;
......@@ -369,7 +369,7 @@
* form.sumbit(); //form变量已经指向了form元素
*
*/
sync:function (formId) {
sync: function (formId) {
var me = this,
form = formId ? document.getElementById(formId) :
domUtils.findParent(me.iframe.parentNode, function (node) {
......@@ -382,14 +382,14 @@
* @name setHeight
* @grammar editor.setHeight(number); //纯数值,不带单位
*/
setHeight:function (height) {
setHeight: function (height) {
if (height !== parseInt(this.iframe.parentNode.style.height)) {
this.iframe.parentNode.style.height = height + 'px';
}
this.document.body.style.height = height - 20 + 'px';
},
addshortcutkey:function (cmd, keys) {
addshortcutkey: function (cmd, keys) {
var obj = {};
if (keys) {
obj[cmd] = keys
......@@ -398,7 +398,7 @@
}
utils.extend(this.shortcutkeys, obj)
},
_bindshortcutKeys:function () {
_bindshortcutKeys: function () {
var me = this, shortcutkeys = this.shortcutkeys;
me.addListener('keydown', function (type, e) {
var keyCode = e.keyCode || e.which;
......@@ -435,7 +435,7 @@
* return false //编辑器没有内容 ,getContent直接返回空
* })
*/
getContent:function (cmd,fn) {
getContent: function (cmd, fn,notSetCursor) {
var me = this;
if (cmd && utils.isFunction(cmd)) {
fn = cmd;
......@@ -447,14 +447,15 @@
var range = me.selection.getRange(),
address = range.createAddress();
me.fireEvent( 'beforegetcontent');
me.fireEvent('beforegetcontent');
var root = UE.htmlparser(me.body.innerHTML);
me.filterOutputRule(root);
me.fireEvent( 'aftergetcontent', cmd );
me.fireEvent('aftergetcontent', cmd);
try{
range.moveToAddress(address).select(true);
}catch(e){}
try {
!notSetCursor && range.moveToAddress(address).select(true);
} catch (e) {
}
return root.toHtml();
},
......@@ -463,7 +464,7 @@
* @name getAllHtml
* @grammar editor.getAllHtml() => String
*/
getAllHtml:function () {
getAllHtml: function () {
var me = this,
headHtml = [],
html = '';
......@@ -487,7 +488,7 @@
* @name getPlainTxt
* @grammar editor.getPlainTxt() => String
*/
getPlainTxt:function () {
getPlainTxt: function () {
var reg = new RegExp(domUtils.fillChar, 'g'),
html = this.body.innerHTML.replace(/[\n\r]/g, '');//ie要先去了\n在处理
html = html.replace(/<(p|div)[^>]*>(<br\/?>|&nbsp;)<\/\1>/gi, '\n')
......@@ -505,7 +506,7 @@
* @name getContentTxt
* @grammar editor.getContentTxt() => String
*/
getContentTxt:function () {
getContentTxt: function () {
var reg = new RegExp(domUtils.fillChar, 'g');
//取出来的空格会有c2a0会变成乱码,处理这种情况\u00a0
return this.body[browser.ie ? 'innerText' : 'textContent'].replace(reg, '').replace(/\u00a0/g, ' ');
......@@ -522,10 +523,10 @@
* editor.setContent("欢迎使用UEditor!");
* })
*/
setContent:function (html, isAppendTo, notFireSelectionchange) {
setContent: function (html, isAppendTo, notFireSelectionchange) {
var me = this;
me.fireEvent( 'beforesetcontent',html);
me.fireEvent('beforesetcontent', html);
var root = UE.htmlparser(html);
me.filterInputRule(root);
html = root.toHtml();
......@@ -569,7 +570,7 @@
}
}
}
me.fireEvent( 'aftersetcontent' );
me.fireEvent('aftersetcontent');
me.fireEvent('contentchange');
!notFireSelectionchange && me._selectionChange();
......@@ -587,7 +588,7 @@
* @name focus
* @grammar editor.focus([toEnd]) //默认focus到编辑器头部,toEnd为true时focus到内容尾部
*/
focus:function (toEnd) {
focus: function (toEnd) {
try {
var me = this,
rng = me.selection.getRange();
......@@ -605,7 +606,7 @@
* @private
* @ignore
*/
_initEvents:function () {
_initEvents: function () {
var me = this,
doc = me.document,
win = me.window;
......@@ -667,7 +668,7 @@
* @private
* @ignore
*/
_proxyDomEvent:function (evt) {
_proxyDomEvent: function (evt) {
return this.fireEvent(evt.type.replace(/^on/, ''), evt);
},
/**
......@@ -675,7 +676,7 @@
* @private
* @ignore
*/
_selectionChange:function (delay, evt) {
_selectionChange: function (delay, evt) {
var me = this;
//有光标才做selectionchange 为了解决未focus时点击source不能触发更改工具栏状态的问题(source命令notNeedUndo=1)
// if ( !me.selection.isFocus() ){
......@@ -727,7 +728,7 @@
}
}, delay || 50);
},
_callCmdFn:function (fnName, args) {
_callCmdFn: function (fnName, args) {
var cmdName = args[0].toLowerCase(),
cmd, cmdFn;
cmd = this.commands[cmdName] || UE.commands[cmdName];
......@@ -745,7 +746,7 @@
* @name execCommand
* @grammar editor.execCommand(cmdName) => {*}
*/
execCommand:function (cmdName) {
execCommand: function (cmdName) {
cmdName = cmdName.toLowerCase();
var me = this,
result,
......@@ -778,7 +779,7 @@
* * ''0'' 当前命令可用
* * ''1'' 当前命令已经执行过了
*/
queryCommandState:function (cmdName) {
queryCommandState: function (cmdName) {
return this._callCmdFn('queryCommandState', arguments);
},
......@@ -787,7 +788,7 @@
* @name queryCommandValue
* @grammar editor.queryCommandValue(cmdName) => {*}
*/
queryCommandValue:function (cmdName) {
queryCommandValue: function (cmdName) {
return this._callCmdFn('queryCommandValue', arguments);
},
/**
......@@ -801,7 +802,7 @@
* @example
* editor.hasContents(['span']) //如果编辑器里有这些,不认为是空
*/
hasContents:function (tags) {
hasContents: function (tags) {
if (tags) {
for (var i = 0, ci; ci = tags[i++];) {
if (this.document.getElementsByTagName(ci).length > 0) {
......@@ -832,10 +833,10 @@
* * 清空回退列表
* @grammar editor.reset()
*/
reset:function () {
reset: function () {
this.fireEvent('reset');
},
setEnabled:function () {
setEnabled: function () {
var me = this, range;
if (me.body.contentEditable == 'false') {
me.body.contentEditable = true;
......@@ -860,10 +861,10 @@
* @name enable
* @grammar editor.enable()
*/
enable:function () {
enable: function () {
return this.setEnabled();
},
setDisabled:function (except) {
setDisabled: function (except) {
var me = this;
except = except ? utils.isArray(except) ? except : [except] : [];
if (me.body.contentEditable == 'true') {
......@@ -889,7 +890,7 @@
* //禁用工具栏中除加粗和插入图片之外的所有功能
* editor.disable(['bold','insertimage']);//可以是单一的String,也可以是Array
*/
disable:function (except) {
disable: function (except) {
return this.setDisabled(except);
},
/**
......@@ -898,7 +899,7 @@
* @private
* @param {String} cont 要存入的内容
*/
_setDefaultContent:function () {
_setDefaultContent: function () {
function clear() {
var me = this;
if (me.document.getElementById('initContent')) {
......@@ -925,7 +926,7 @@
* @private
* @ignore
*/
setShow:function () {
setShow: function () {
var me = this, range = me.selection.getRange();
if (me.container.style.display == 'none') {
//有可能内容丢失了
......@@ -948,7 +949,7 @@
* @name show
* @grammar editor.show()
*/
show:function () {
show: function () {
return this.setShow();
},
/**
......@@ -956,7 +957,7 @@
* @private
* @ignore
*/
setHide:function () {
setHide: function () {
var me = this;
if (!me.lastBk) {
me.lastBk = me.selection.getRange().createBookmark(true);
......@@ -968,7 +969,7 @@
* @name hide
* @grammar editor.hide()
*/
hide:function () {
hide: function () {
return this.setHide();
},
/**
......@@ -978,7 +979,7 @@
* @example
* editor.getLang('contextMenu.delete') //如果当前是中文,那返回是的是删除
*/
getLang:function (path) {
getLang: function (path) {
var lang = UE.I18N[this.options.lang];
if (!lang) {
throw Error("not import language file");
......@@ -997,8 +998,8 @@
* @example
* editor.getLang(true)
*/
getContentLength:function (ingoneHtml, tagNames) {
var count = this.getContent().length;
getContentLength: function (ingoneHtml, tagNames) {
var count = this.getContent(false,false,true).length;
if (ingoneHtml) {
tagNames = (tagNames || []).concat([ 'hr', 'img', 'iframe']);
count = this.getContentTxt().replace(/[\t\r\n]+/g, '').length;
......@@ -1008,18 +1009,18 @@
}
return count;
},
addInputRule:function (rule) {
addInputRule: function (rule) {
this.inputRules.push(rule);
},
filterInputRule:function (root) {
filterInputRule: function (root) {
for (var i = 0, ci; ci = this.inputRules[i++];) {
ci.call(this, root)
}
},
addOutputRule:function (rule) {
addOutputRule: function (rule) {
this.outputRules.push(rule)
},
filterOutputRule:function (root) {
filterOutputRule: function (root) {
for (var i = 0, ci; ci = this.outputRules[i++];) {
ci.call(this, root)
}
......
......@@ -105,7 +105,7 @@ UE.plugins['undo'] = function () {
me.fireEvent('reset', true);
};
this.getScene = function () {
this.getScene = function (notSetCursor) {
var rng = me.selection.getRange(),
restoreAddress = rng.createAddress(),
rngAddress = rng.createAddress(false,true);
......@@ -115,15 +115,15 @@ UE.plugins['undo'] = function () {
browser.ie && (cont = cont.replace(/>&nbsp;</g, '><').replace(/\s*</g, '<').replace(/>\s*/g, '>'));
me.fireEvent('aftergetscene');
try{
rng.moveToAddress(restoreAddress).select(true);
!notSetCursor && rng.moveToAddress(restoreAddress).select(true);
}catch(e){}
return {
address:rngAddress,
content:cont
}
};
this.save = function (notCompareRange) {
var currentScene = this.getScene(),
this.save = function (notCompareRange,notSetCursor) {
var currentScene = this.getScene(notSetCursor),
lastScene = this.list[this.index];
//内容相同位置相同不存
if (lastScene && lastScene.content == currentScene.content &&
......@@ -232,7 +232,7 @@ UE.plugins['undo'] = function () {
if (keycont >= maxInputCount || me.undoManger.mousedown) {
if (me.selection.getRange().collapsed)
me.fireEvent('contentchange');
me.undoManger.save();
me.undoManger.save(false,true);
me.undoManger.mousedown = false;
}
}
......
此差异已折叠。
/*
* LaTeX Math in pure HTML and CSS -- No images whatsoever
* v0.xa
* by Jay and Han
* Lesser GPL Licensed: http: //www.gnu.org/licenses/lgpl.html
*
* This file is automatically included by mathquill.js
*
*/
@font-face {
font-family: Symbola;
src: url(font/Symbola.eot);
src: local("Symbola Regular"), local("Symbola"), url(font/Symbola.ttf) format("truetype"), url(font/Symbola.otf) format("opentype"), url(font/Symbola.svg) format("svg");
}
.mathquill-editable {
display: -moz-inline-box;
display: inline-block;
display: -moz-inline-box;
display: inline-block;
}
.mathquill-editable .cursor {
border-left: 1px solid black;
margin-right: -1px;
position: relative;
z-index: 1;
padding: 0;
display: -moz-inline-box;
display: inline-block;
border-left: 1px solid black;
margin-right: -1px;
position: relative;
z-index: 1;
padding: 0;
display: -moz-inline-box;
display: inline-block;
}
.mathquill-editable .cursor.blink {
visibility: hidden;
visibility: hidden;
}
.mathquill-editable,
.mathquill-embedded-latex .mathquill-editable {
padding: 2px;
border: 1px solid gray;
padding: 2px;
}
.mathquill-embedded-latex .mathquill-editable {
margin: 1px;
margin: 1px;
}
.mathquill-editable.hasCursor,
.mathquill-editable .hasCursor {
-webkit-box-shadow: #68b4df 0 0 3px 2px;
-moz-box-shadow: #68b4df 0 0 3px 2px;
box-shadow: #68b4df 0 0 3px 2px;
-webkit-box-shadow: #68b4df 0 0 3px 2px;
-moz-box-shadow: #68b4df 0 0 3px 2px;
box-shadow: #68b4df 0 0 3px 2px;
}
.mathquill-editable .latex-command-input {
color: inherit;
font-family: "Courier New", monospace;
border: 1px solid gray;
padding-right: 1px;
margin-right: 1px;
margin-left: 2px;
color: inherit;
font-family: "Courier New", monospace;
border: 1px solid gray;
padding-right: 1px;
margin-right: 1px;
margin-left: 2px;
}
.mathquill-editable .latex-command-input.empty {
background: transparent;
background: transparent;
}
.mathquill-editable .latex-command-input.hasCursor {
border-color: ActiveBorder;
border-color: ActiveBorder;
}
.mathquill-editable.empty:after,
.mathquill-textbox:after,
.mathquill-rendered-math .empty:after {
visibility: hidden;
content: 'c';
visibility: hidden;
content: 'c';
}
.mathquill-editable .cursor:only-child:after,
.mathquill-editable .textarea + .cursor:last-child:after {
visibility: hidden;
content: 'c';
visibility: hidden;
content: 'c';
}
.mathquill-textbox {
overflow-x: auto;
overflow-y: hidden;
overflow-x: auto;
overflow-y: hidden;
}
.mathquill-rendered-math {
font-variant: normal;
font-weight: normal;
font-style: normal;
font-size: 115%;
line-height: 1;
display: -moz-inline-box;
display: inline-block;
font-variant: normal;
font-weight: normal;
font-style: normal;
font-size: 115%;
line-height: 1;
display: -moz-inline-box;
display: inline-block;
}
.mathquill-rendered-math .non-leaf,
.mathquill-rendered-math .scaled {
display: -moz-inline-box;
display: inline-block;
display: -moz-inline-box;
display: inline-block;
}
.mathquill-rendered-math var,
.mathquill-rendered-math .text,
.mathquill-rendered-math .nonSymbola {
font-family: "Times New Roman", Symbola, serif;
line-height: .9;
font-family: "Times New Roman", Symbola, serif;
line-height: .9;
}
.mathquill-rendered-math * {
font-size: inherit;
line-height: inherit;
margin: 0;
padding: 0;
border-color: black;
/*-webkit-user-select: none;*/
/*-moz-user-select: none;*/
/*user-select: none;*/
white-space: pre-wrap;
font-size: inherit;
line-height: inherit;
margin: 0;
padding: 0;
border-color: black;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
white-space: pre-wrap;
}
.mathquill-rendered-math .empty {
border:1px dotted #000;
background: #ccc;
}
.mathquill-rendered-math.empty {
background: transparent;
background: transparent;
}
.mathquill-rendered-math .text {
font-size: 87%;
font-size: 87%;
}
.mathquill-rendered-math .font {
font: 1em "Times New Roman", Symbola, serif;
font: 1em "Times New Roman", Symbola, serif;
}
.mathquill-rendered-math .font * {
font-family: inherit;
font-style: inherit;
font-family: inherit;
font-style: inherit;
}
.mathquill-rendered-math b,
.mathquill-rendered-math b.font {
font-weight: bolder;
font-weight: bolder;
}
.mathquill-rendered-math var,
.mathquill-rendered-math i,
.mathquill-rendered-math i.font {
font-syle: italic;
font-syle: italic;
}
.mathquill-rendered-math var.florin {
margin: 0 -0.1em;
margin: 0 -0.1em;
}
.mathquill-rendered-math big {
font-size: 125%;
font-size: 125%;
}
.mathquill-rendered-math .roman {
font-style: normal;
font-style: normal;
}
.mathquill-rendered-math .sans-serif {
font-family: sans-serif, Symbola, serif;
font-family: sans-serif, Symbola, serif;
}
.mathquill-rendered-math .monospace {
font-family: monospace, Symbola, serif;
font-family: monospace, Symbola, serif;
}
.mathquill-rendered-math .overline {
border-top: 1px solid black;
margin-top: 1px;
border-top: 1px solid black;
margin-top: 1px;
}
.mathquill-rendered-math .underline {
border-bottom: 1px solid black;
margin-bottom: 1px;
border-bottom: 1px solid black;
margin-bottom: 1px;
}
.mathquill-rendered-math .binary-operator {
padding: 0 0.2em;
display: -moz-inline-box;
display: inline-block;
padding: 0 0.2em;
display: -moz-inline-box;
display: inline-block;
}
.mathquill-rendered-math .unary-operator {
padding-left: 0.2em;
padding-left: 0.2em;
}
.mathquill-rendered-math sup,
.mathquill-rendered-math sub {
position: relative;
font-size: 90%;
position: relative;
font-size: 90%;
}
.mathquill-rendered-math sup .binary-operator,
.mathquill-rendered-math sub .binary-operator {
padding: 0 .1em;
padding: 0 .1em;
}
.mathquill-rendered-math sup .unary-operator,
.mathquill-rendered-math sub .unary-operator {
padding-left: .1em;
padding-left: .1em;
}
.mathquill-rendered-math sup.limit,
.mathquill-rendered-math sub.limit,
.mathquill-rendered-math sup.nthroot,
.mathquill-rendered-math sub.nthroot {
font-size: 80%;
font-size: 80%;
}
.mathquill-rendered-math sup .fraction,
.mathquill-rendered-math sub .fraction {
font-size: 70%;
vertical-align: -0.4em;
font-size: 70%;
vertical-align: -0.4em;
}
.mathquill-rendered-math sup .numerator,
.mathquill-rendered-math sub .numerator {
padding-bottom: 0;
padding-bottom: 0;
}
.mathquill-rendered-math sup .denominator,
.mathquill-rendered-math sub .denominator {
padding-top: 0;
padding-top: 0;
}
.mathquill-rendered-math sup {
vertical-align: .5em;
vertical-align: .5em;
}
.mathquill-rendered-math sup.limit,
.mathquill-rendered-math sup.nthroot {
vertical-align: 0.8em;
vertical-align: 0.8em;
}
.mathquill-rendered-math sup.nthroot {
margin-right: -0.6em;
margin-left: .2em;
min-width: .5em;
margin-right: -0.6em;
margin-left: .2em;
min-width: .5em;
}
.mathquill-rendered-math sub {
vertical-align: -0.4em;
vertical-align: -0.4em;
}
.mathquill-rendered-math sub.limit {
vertical-align: -0.6em;
vertical-align: -0.6em;
}
.mathquill-rendered-math .paren {
padding: 0 .1em;
vertical-align: bottom;
-webkit-transform-origin: bottom center;
-moz-transform-origin: bottom center;
-ms-transform-origin: bottom center;
-o-transform-origin: bottom center;
transform-origin: bottom center;
padding: 0 .1em;
vertical-align: bottom;
-webkit-transform-origin: bottom center;
-moz-transform-origin: bottom center;
-ms-transform-origin: bottom center;
-o-transform-origin: bottom center;
transform-origin: bottom center;
}
.mathquill-rendered-math .array {
vertical-align: middle;
text-align: center;
vertical-align: middle;
text-align: center;
}
.mathquill-rendered-math .array > span {
display: block;
display: block;
}
.mathquill-rendered-math .non-italicized-function {
font-family: Symbola, "Times New Roman", serif;
line-height: .9;
font-style: normal;
padding-right: .2em;
font-family: Symbola, "Times New Roman", serif;
line-height: .9;
font-style: normal;
padding-right: .2em;
}
.mathquill-rendered-math .fraction {
font-size: 90%;
text-align: center;
vertical-align: -0.5em;
padding: 0 .2em;
font-size: 90%;
text-align: center;
vertical-align: -0.5em;
padding: 0 .2em;
}
.mathquill-rendered-math .fraction,
.mathquill-rendered-math x:-moz-any-link {
display: -moz-groupbox;
display: -moz-groupbox;
}
.mathquill-rendered-math .fraction,
.mathquill-rendered-math x:-moz-any-link,
.mathquill-rendered-math x:default {
display: inline-block;
display: inline-block;
}
.mathquill-rendered-math .numerator,
.mathquill-rendered-math .denominator {
display: block;
display: block;
}
.mathquill-rendered-math .numerator {
padding: 0 0.1em;
margin-bottom: -0.1em;
padding: 0 0.1em;
margin-bottom: -0.1em;
}
.mathquill-rendered-math .denominator {
border-top: 1px solid;
float: right;
width: 100%;
padding: .1em .1em 0 .1em;
margin-right: -0.1em;
margin-left: -0.1em;
border-top: 1px solid;
float: right;
width: 100%;
padding: .1em .1em 0 .1em;
margin-right: -0.1em;
margin-left: -0.1em;
}
.mathquill-rendered-math .sqrt-prefix {
padding-top: 0;
position: relative;
top: .1em;
vertical-align: top;
-webkit-transform-origin: top;
-moz-transform-origin: top;
-ms-transform-origin: top;
-o-transform-origin: top;
transform-origin: top;
padding-top: 0;
position: relative;
top: .1em;
vertical-align: top;
-webkit-transform-origin: top;
-moz-transform-origin: top;
-ms-transform-origin: top;
-o-transform-origin: top;
transform-origin: top;
}
.mathquill-rendered-math .sqrt-stem {
border-top: 1px solid;
margin-top: 1px;
padding-left: .15em;
padding-right: .2em;
margin-right: .1em;
border-top: 1px solid;
margin-top: 1px;
padding-left: .15em;
padding-right: .2em;
margin-right: .1em;
}
.mathquill-rendered-math,
.mathquill-rendered-math .mathquill-editable {
cursor: text;
font-family: Symbola, "Times New Roman", serif;
cursor: text;
font-family: Symbola, "Times New Roman", serif;
}
.mathquill-rendered-math .selection,
.mathquill-editable .selection,
......@@ -275,18 +290,18 @@
.mathquill-editable .selection .non-leaf,
.mathquill-rendered-math .selection .scaled,
.mathquill-editable .selection .scaled {
background: #B4D5FE !important;
background: Highlight !important;
color: HighlightText;
border-color: HighlightText;
background: #B4D5FE !important;
background: Highlight !important;
color: HighlightText;
border-color: HighlightText;
}
.mathquill-rendered-math .selection .matrixed,
.mathquill-editable .selection .matrixed {
background: #39F !important;
background: #39F !important;
}
.mathquill-rendered-math .selection .matrixed-container,
.mathquill-editable .selection .matrixed-container {
filter: progid:DXImageTransform.Microsoft.Chroma(color='#3399FF') !important;
filter: progid:DXImageTransform.Microsoft.Chroma(color='#3399FF') !important;
}
.mathquill-rendered-math .selection.blur,
.mathquill-editable .selection.blur,
......@@ -294,37 +309,37 @@
.mathquill-editable .selection.blur .non-leaf,
.mathquill-rendered-math .selection.blur .matrixed,
.mathquill-editable .selection.blur .matrixed {
background: #D4D4D4 !important;
color: black;
border-color: black;
background: #D4D4D4 !important;
color: black;
border-color: black;
}
.mathquill-rendered-math .selection.blur .matrixed-container,
.mathquill-editable .selection.blur .matrixed-container {
filter: progid:DXImageTransform.Microsoft.Chroma(color='#D4D4D4') !important;
filter: progid:DXImageTransform.Microsoft.Chroma(color='#D4D4D4') !important;
}
.mathquill-editable .textarea,
.mathquill-rendered-math .textarea {
position: relative;
-webkit-user-select: text;
-moz-user-select: text;
user-select: text;
position: relative;
-webkit-user-select: text;
-moz-user-select: text;
user-select: text;
}
.mathquill-editable .textarea textarea,
.mathquill-rendered-math .textarea textarea,
.mathquill-editable .selectable,
.mathquill-rendered-math .selectable {
-webkit-user-select: text;
-moz-user-select: text;
user-select: text;
position: absolute;
clip: rect(1em 1em 1em 1em);
-webkit-user-select: text;
-moz-user-select: text;
user-select: text;
position: absolute;
clip: rect(1em 1em 1em 1em);
}
.mathquill-rendered-math .matrixed {
background: white;
display: -moz-inline-box;
display: inline-block;
background: white;
display: -moz-inline-box;
display: inline-block;
}
.mathquill-rendered-math .matrixed-container {
filter: progid:DXImageTransform.Microsoft.Chroma(color='white');
margin-top: -0.1em;
filter: progid:DXImageTransform.Microsoft.Chroma(color='white');
margin-top: -0.1em;
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册