Remove obsolete EpicEditor javascript
This commit is contained in:
parent
dbeb86edbc
commit
398b413095
2 changed files with 0 additions and 43 deletions
|
@ -225,28 +225,6 @@ app.controller("adminProblemsController", ["$controller", "$scope", "$http", fun
|
|||
}
|
||||
$scope.$apply();
|
||||
$scope.problems.forEach(function(problem) {
|
||||
|
||||
$(".selectpicker").selectpicker();
|
||||
var config = {
|
||||
toolbar: [
|
||||
{ name: "basicstyles", items: [ "Bold", "Italic", "Underline" ] },
|
||||
{ name: "links", items: [ "Link" ] },
|
||||
{ name: "paragraph", items: [ "NumberedList", "BulletedList", "-", "Outdent", "Indent", "-", "Blockquote" ] },
|
||||
{ name: "tools", items: [ "Maximize" ] },
|
||||
{ name: "document", items: [ "Source" ] },
|
||||
]
|
||||
};
|
||||
var editor = new EpicEditor({
|
||||
container: problem.pid + "_grader",
|
||||
theme: {
|
||||
base: "https://cdnjs.cloudflare.com/ajax/libs/epiceditor/0.2.2/themes/base/epiceditor.css",
|
||||
preview: "https://cdnjs.cloudflare.com/ajax/libs/epiceditor/0.2.2/themes/preview/github.css",
|
||||
editor: "https://cdnjs.cloudflare.com/ajax/libs/epiceditor/0.2.2/themes/editor/epic-light.css"
|
||||
},
|
||||
button: {
|
||||
bar: "show"
|
||||
}
|
||||
}).load();
|
||||
var grader = ace.edit(problem.pid + "_grader");
|
||||
grader.setTheme("ace/theme/tomorrow");
|
||||
grader.getSession().setMode("ace/mode/python");
|
||||
|
|
|
@ -87,27 +87,6 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$(".selectpicker").selectpicker();
|
||||
var config = {
|
||||
toolbar: [
|
||||
{ name: "basicstyles", items: [ "Bold", "Italic", "Underline" ] },
|
||||
{ name: "links", items: [ "Link" ] },
|
||||
{ name: "paragraph", items: [ "NumberedList", "BulletedList", "-", "Outdent", "Indent", "-", "Blockquote" ] },
|
||||
{ name: "tools", items: [ "Maximize" ] },
|
||||
{ name: "document", items: [ "Source" ] },
|
||||
]
|
||||
};
|
||||
var editor = new EpicEditor({
|
||||
container: "new_grader",
|
||||
theme: {
|
||||
base: "https://cdnjs.cloudflare.com/ajax/libs/epiceditor/0.2.2/themes/base/epiceditor.css",
|
||||
preview: "https://cdnjs.cloudflare.com/ajax/libs/epiceditor/0.2.2/themes/preview/github.css",
|
||||
editor: "https://cdnjs.cloudflare.com/ajax/libs/epiceditor/0.2.2/themes/editor/epic-light.css"
|
||||
},
|
||||
button: {
|
||||
bar: "show"
|
||||
}
|
||||
}).load();
|
||||
var new_grader = ace.edit("new_grader");
|
||||
new_grader.setTheme("ace/theme/tomorrow");
|
||||
new_grader.getSession().setMode("ace/mode/python");
|
||||
|
|
Loading…
Reference in a new issue