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
7998b4fe
Commit
7998b4fe
authored
Sep 25, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix editing of html modules that broke with changes to EditingDescriptor
parent
d0cfd16b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
common/lib/xmodule/xmodule/editing_module.py
+0
-1
common/lib/xmodule/xmodule/html_module.py
+5
-1
common/lib/xmodule/xmodule/js/src/html/edit.coffee
+7
-0
No files found.
common/lib/xmodule/xmodule/editing_module.py
View file @
7998b4fe
from
pkg_resources
import
resource_string
from
lxml
import
etree
from
xmodule.mako_module
import
MakoModuleDescriptor
import
logging
...
...
common/lib/xmodule/xmodule/html_module.py
View file @
7998b4fe
...
...
@@ -6,7 +6,8 @@ import sys
from
lxml
import
etree
from
path
import
path
from
.x_module
import
XModule
,
Template
from
.x_module
import
XModule
from
pkg_resources
import
resource_string
from
.xml_module
import
XmlDescriptor
,
name_to_pathname
from
.editing_module
import
EditingDescriptor
from
.stringify
import
stringify_children
...
...
@@ -34,6 +35,9 @@ class HtmlDescriptor(XmlDescriptor, EditingDescriptor):
module_class
=
HtmlModule
filename_extension
=
"xml"
js
=
{
'coffee'
:
[
resource_string
(
__name__
,
'js/src/html/edit.coffee'
)]}
js_module_name
=
"HTMLEditingDescriptor"
# VS[compat] TODO (cpennington): Delete this method once all fall 2012 course
# are being edited in the cms
@classmethod
...
...
common/lib/xmodule/xmodule/js/src/html/edit.coffee
0 → 100644
View file @
7998b4fe
class
@
HTMLEditingDescriptor
constructor
:
(
@
element
)
->
@
edit_box
=
CodeMirror
.
fromTextArea
(
$
(
".edit-box"
,
@
element
)[
0
],
{
mode
:
"text/html"
})
save
:
->
@
edit_box
.
getValue
()
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