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
c8eaa534
Commit
c8eaa534
authored
Mar 24, 2014
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos.
parent
7b241726
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
common/lib/xmodule/xmodule/js/src/html/edit.coffee
+3
-3
No files found.
common/lib/xmodule/xmodule/js/src/html/edit.coffee
View file @
c8eaa534
...
...
@@ -72,7 +72,7 @@ class @HTMLEditingDescriptor
data
[
'src'
]
=
rewriteStaticLinks
(
data
[
'src'
],
@
base_asset_url
,
'/static/'
)
saveImage
:
(
data
)
=>
# Called when the image plugin i
n
saved. Input arg is the JSON version of the image data.
# Called when the image plugin i
s
saved. Input arg is the JSON version of the image data.
if
data
[
'src'
]
data
[
'src'
]
=
rewriteStaticLinks
(
data
[
'src'
],
'/static/'
,
@
base_asset_url
)
...
...
@@ -82,12 +82,12 @@ class @HTMLEditingDescriptor
data
[
'href'
]
=
rewriteStaticLinks
(
data
[
'href'
],
@
base_asset_url
,
'/static/'
)
saveLink
:
(
data
)
=>
# Called when the link plugin i
n
saved. Input arg is the JSON version of the link data.
# Called when the link plugin i
s
saved. Input arg is the JSON version of the link data.
if
data
[
'href'
]
data
[
'href'
]
=
rewriteStaticLinks
(
data
[
'href'
],
'/static/'
,
@
base_asset_url
)
showCodeEditor
:
(
codeEditor
)
=>
# Called when the CodeMirror Editor is displayed to convert links to show satic prefix.
# Called when the CodeMirror Editor is displayed to convert links to show s
t
atic prefix.
# The input argument is the CodeMirror instance.
content
=
rewriteStaticLinks
(
codeEditor
.
getValue
(),
@
base_asset_url
,
'/static/'
)
codeEditor
.
setValue
(
content
)
...
...
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