Skip to content

Commit

Permalink
Fix style lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dthies committed Dec 1, 2018
1 parent 36e1a6f commit 774889b
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 54 deletions.
25 changes: 3 additions & 22 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

.mathslate-tinymce .mathslate-workspace .mathslate-selected {
color: green;
mathcolor: green;
}

.mathslate-tinymce .mathslate-workspace-dragged {
Expand All @@ -65,9 +64,6 @@
padding-left: 10px;
}

.mathslate-tinymce .mathslate-preview .mathslate-selected div {
}

.mathslate-tinymce .mathslate-preview .mathslate-selected {
border-left: solid 5px green;
background-color: #121;
Expand Down Expand Up @@ -104,9 +100,6 @@
}
}

.mathslate-tinymce .mathslate-editor {
}

.mathslate-tinymce .mathslate-workspace {
background-color: #333;
color: #eee;
Expand Down Expand Up @@ -139,28 +132,19 @@
}

.mathslate-tinymce .mathslate-toolbox .yui3-tab-selected .yui3-tab-focused {
background: linear-gradient(to top, #444, #888)
background: linear-gradient(to top, #444, #888);
}

.mathslate-tinymce .mathslate-toolbox .yui3-tab-selected .yui3-tab-label {
background: #444 linear-gradient(to bottom, #aaa, #444) !important;
background: #444 linear-gradient(to bottom, #aaa, #444);
}

.mathslate-tinymce .mathslate-toolbox .yui3-tabview-list {
border-color: #444;
}

.mathslate-tinymce .yui3-tabview-panel {
height: 100px;
}

.mathslate-tinymce .mathslate-delete-button {
}

.mathslate-tinymce .mathslate-undo-button {
}

.mathslate-tinymce .mathslate-redo-button {
height: 100px;
}

.mathslate-tinymce form button {
Expand All @@ -169,6 +153,3 @@ height: 100px;
text-align: center;
padding: 0;
}

.mathslate-tinymce .mathslate-help-box {
}
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
defined('MOODLE_INTERNAL') || die();

// The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2015041706;
$plugin->version = 2015041707;
// Required Moodle version.
$plugin->requires = 2013101800;
// Full name of the plugin (used for diagnostics).
$plugin->component = 'tinymce_mathslate';
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '1.1.1';
$plugin->release = '1.1.2';
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var NS = M.tinymce_mathslate;
M.tinymce_mathslate.help = params.help || M.tinymce_mathslate.help;
var dialogue = Y.one('#' + params.elementid);
M.tinymce_mathslate.dialogue = dialogue;

var editorID = dialogue.one('.mathslate-container').generateID();
Y.one('#' + editorID).addClass(CSS.EDITOR);

Expand Down Expand Up @@ -116,9 +116,9 @@ var NS = M.tinymce_mathslate;
window.tinyMCEPopup.editor.execCommand('mceInsertContent', false, '\\(' + me.output('tex') + '\\)');
window.tinyMCEPopup.close();
});

window.MathJax.Hub.Queue(['Typeset', window.MathJax.Hub, me.node.generateID()]);

};


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var NS = M.tinymce_mathslate;
M.tinymce_mathslate.help = params.help || M.tinymce_mathslate.help;
var dialogue = Y.one('#' + params.elementid);
M.tinymce_mathslate.dialogue = dialogue;

var editorID = dialogue.one('.mathslate-container').generateID();
Y.one('#' + editorID).addClass(CSS.EDITOR);

Expand Down Expand Up @@ -116,9 +116,9 @@ var NS = M.tinymce_mathslate;
window.tinyMCEPopup.editor.execCommand('mceInsertContent', false, '\\(' + me.output('tex') + '\\)');
window.tinyMCEPopup.close();
});

window.MathJax.Hub.Queue(['Typeset', window.MathJax.Hub, me.node.generateID()]);

};


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var SELECTORS = {
SELECTED: '.' + CSS.SELECTED,
HIGHLIGHT: '.' + CSS.HIGHLIGHT
};

//Constructor for equation workspace
NS.MathJaxEditor = function(id) {
var MathJax = window.MathJax;
Expand Down Expand Up @@ -122,7 +122,7 @@ NS.MathJaxEditor = function(id) {
}
render();
});

help.on('click', function() {
preview.setHTML('<iframe src="' + NS.help + '" style="width: '
+ preview.getStyle('width') + '" class="' + CSS.HELPBOX + '"/>');
Expand Down Expand Up @@ -158,7 +158,7 @@ NS.MathJaxEditor = function(id) {
});
MathJax.Hub.Queue(['Typeset', MathJax.Hub, shim.getDOMNode()]);
}

/* Add drag and drop functionality
* @function makeDraggable
*/
Expand All @@ -176,7 +176,7 @@ NS.MathJaxEditor = function(id) {
canvas.get('node').one('#' + se.getSelected()).setAttribute('fill', 'green');
preview.one('#' + se.getSelected()).addClass(CSS.SELECTED);
}

se.forEach(function(m) {
var node = ddnodes.one('#' + m[1].id);
if (!node) {return;}
Expand Down Expand Up @@ -290,7 +290,7 @@ NS.MathJaxEditor = function(id) {
canvas.get('node').one('#' + m[1].id).removeAttribute('stroke');
canvas.get('node').one('#' + m[1].id).removeAttribute('fill');
});

});
}
/* Return snippet as MathML string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var SELECTORS = {
SELECTED: '.' + CSS.SELECTED,
HIGHLIGHT: '.' + CSS.HIGHLIGHT
};

//Constructor for equation workspace
NS.MathJaxEditor = function(id) {
var MathJax = window.MathJax;
Expand Down Expand Up @@ -122,7 +122,7 @@ NS.MathJaxEditor = function(id) {
}
render();
});

help.on('click', function() {
preview.setHTML('<iframe src="' + NS.help + '" style="width: '
+ preview.getStyle('width') + '" class="' + CSS.HELPBOX + '"/>');
Expand Down Expand Up @@ -158,7 +158,7 @@ NS.MathJaxEditor = function(id) {
});
MathJax.Hub.Queue(['Typeset', MathJax.Hub, shim.getDOMNode()]);
}

/* Add drag and drop functionality
* @function makeDraggable
*/
Expand All @@ -176,7 +176,7 @@ NS.MathJaxEditor = function(id) {
canvas.get('node').one('#' + se.getSelected()).setAttribute('fill', 'green');
preview.one('#' + se.getSelected()).addClass(CSS.SELECTED);
}

se.forEach(function(m) {
var node = ddnodes.one('#' + m[1].id);
if (!node) {return;}
Expand Down Expand Up @@ -290,7 +290,7 @@ NS.MathJaxEditor = function(id) {
canvas.get('node').one('#' + m[1].id).removeAttribute('stroke');
canvas.get('node').one('#' + m[1].id).removeAttribute('fill');
});

});
}
/* Return snippet as MathML string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ NS.mSlots = function() {
});
}
}

var newID = 'MJX-' + Y.Node.create('<span></span').generateID();
var newMath;

Expand Down Expand Up @@ -224,7 +224,7 @@ NS.mSlots = function() {
}
});
}

});
},
/* Return output in various formats
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ NS.mSlots = function() {
});
}
}

var newID = 'MJX-' + Y.Node.create('<span></span').generateID();
var newMath;

Expand Down Expand Up @@ -224,7 +224,7 @@ NS.mSlots = function() {
}
});
}

});
},
/* Return output in various formats
Expand Down
6 changes: 3 additions & 3 deletions yui/src/dialogue/js/dialogue.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var NS = M.tinymce_mathslate;
M.tinymce_mathslate.help = params.help || M.tinymce_mathslate.help;
var dialogue = Y.one('#' + params.elementid);
M.tinymce_mathslate.dialogue = dialogue;

var editorID = dialogue.one('.mathslate-container').generateID();
Y.one('#' + editorID).addClass(CSS.EDITOR);

Expand Down Expand Up @@ -114,8 +114,8 @@ var NS = M.tinymce_mathslate;
window.tinyMCEPopup.editor.execCommand('mceInsertContent', false, '\\(' + me.output('tex') + '\\)');
window.tinyMCEPopup.close();
});

window.MathJax.Hub.Queue(['Typeset', window.MathJax.Hub, me.node.generateID()]);

};

10 changes: 5 additions & 5 deletions yui/src/mathjaxeditor/js/mathjaxeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var SELECTORS = {
SELECTED: '.' + CSS.SELECTED,
HIGHLIGHT: '.' + CSS.HIGHLIGHT
};

//Constructor for equation workspace
NS.MathJaxEditor = function(id) {
var MathJax = window.MathJax;
Expand Down Expand Up @@ -120,7 +120,7 @@ NS.MathJaxEditor = function(id) {
}
render();
});

help.on('click', function() {
preview.setHTML('<iframe src="' + NS.help + '" style="width: '
+ preview.getStyle('width') + '" class="' + CSS.HELPBOX + '"/>');
Expand Down Expand Up @@ -156,7 +156,7 @@ NS.MathJaxEditor = function(id) {
});
MathJax.Hub.Queue(['Typeset', MathJax.Hub, shim.getDOMNode()]);
}

/* Add drag and drop functionality
* @function makeDraggable
*/
Expand All @@ -174,7 +174,7 @@ NS.MathJaxEditor = function(id) {
canvas.get('node').one('#' + se.getSelected()).setAttribute('fill', 'green');
preview.one('#' + se.getSelected()).addClass(CSS.SELECTED);
}

se.forEach(function(m) {
var node = ddnodes.one('#' + m[1].id);
if (!node) {return;}
Expand Down Expand Up @@ -288,7 +288,7 @@ NS.MathJaxEditor = function(id) {
canvas.get('node').one('#' + m[1].id).removeAttribute('stroke');
canvas.get('node').one('#' + m[1].id).removeAttribute('fill');
});

});
}
/* Return snippet as MathML string
Expand Down
4 changes: 2 additions & 2 deletions yui/src/snippeteditor/js/snippeteditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ NS.mSlots = function() {
});
}
}

var newID = 'MJX-' + Y.Node.create('<span></span').generateID();
var newMath;

Expand Down Expand Up @@ -222,7 +222,7 @@ NS.mSlots = function() {
}
});
}

});
},
/* Return output in various formats
Expand Down

0 comments on commit 774889b

Please sign in to comment.