Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
021a896b
Commit
021a896b
authored
Mar 29, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set size of wiki circuits
parent
db55356d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
djangoapps/simplewiki/mdx_circuit.py
+1
-1
static/js/CodeMirror/mitx_markdown.js
+2
-2
templates/simplewiki_edit.html
+4
-5
No files found.
djangoapps/simplewiki/mdx_circuit.py
View file @
021a896b
...
...
@@ -59,7 +59,7 @@ class CircuitLink(markdown.inlinepatterns.Pattern):
data
=
m
.
group
(
'data'
)
data
=
escape
(
data
)
##TODO: We need to html escape the data
return
etree
.
fromstring
(
"<div align='center'><input type='hidden' parts='' value='"
+
data
+
"' analyses='' class='schematic ctrls' width='
150' height='15
0'/></div>"
)
return
etree
.
fromstring
(
"<div align='center'><input type='hidden' parts='' value='"
+
data
+
"' analyses='' class='schematic ctrls' width='
500' height='30
0'/></div>"
)
def
makeExtension
(
configs
=
None
)
:
...
...
static/js/CodeMirror/mitx_markdown.js
View file @
021a896b
var
schematic_height
=
153
;
var
schematic_width
=
4
00
;
var
schematic_height
=
300
;
var
schematic_width
=
5
00
;
$
(
function
(){
$
(
document
).
ready
(
function
()
{
...
...
templates/simplewiki_edit.html
View file @
021a896b
...
...
@@ -19,14 +19,13 @@
<style
type=
"text/css"
>
.CodeMirror-scroll
{
height
:
80
0px
;
width
:
680px
;
}
.CodeMirror-scroll
{
min-height
:
55
0px
;
width
:
100%
;
}
.CodeMirror
{
border
:
1px
solid
black
;
text-align
:
left
;
}
</style>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment