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
9797354a
Commit
9797354a
authored
Mar 19, 2014
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary code.
parent
09643c87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
common/lib/xmodule/xmodule/js/src/html/edit.coffee
+4
-10
No files found.
common/lib/xmodule/xmodule/js/src/html/edit.coffee
View file @
9797354a
class
@
HTMLEditingDescriptor
@
isInactiveClass
:
"is-inactive"
constructor
:
(
element
)
->
@
element
=
element
;
...
...
@@ -23,12 +22,7 @@ class @HTMLEditingDescriptor
# TODO: we should share this CSS with studio (and LMS)
content_css
:
"
#{
baseUrl
}
/css/tiny-mce.css"
,
formats
:
{
# Disable h4, h5, and h6 styles as we don't have CSS for them.
# TODO: this doesn't seem to be working with the upgrade.
h4
:
{},
h5
:
{},
h6
:
{},
# tinyMCE does block level for code by default
# tinyMCE does block level for code by default
code
:
{
inline
:
'code'
}
},
# Disable visual aid on borderless table.
...
...
@@ -38,9 +32,7 @@ class @HTMLEditingDescriptor
path
:
"
#{
baseUrl
}
/js/vendor/CodeMirror"
},
# We may want to add "styleselect" when we collect all styles used throughout the LMS
# Can have a single toolbar by just specifying "toolbar". Splitting for now so all are visible.
toolbar
:
"formatselect | fontselect | bold italic wrapAsCode underline forecolor | bullist numlist outdent indent blockquote | link unlink image | code"
,
# TODO: i18n
block_formats
:
"Paragraph=p;Preformatted=pre;Heading 1=h1;Heading 2=h2;Heading 3=h3"
,
width
:
'100%'
,
height
:
'400px'
,
...
...
@@ -50,7 +42,7 @@ class @HTMLEditingDescriptor
valid_children
:
"+body[style]"
,
setup
:
@
setupTinyMCE
,
# Cannot get access to tinyMCE Editor instance (for focusing) until after it is rendered.
# The tinyMCE callback passes in the editor as a paramter.
# The tinyMCE callback passes in the editor as a param
e
ter.
init_instance_callback
:
@
initInstanceCallback
})
...
...
@@ -64,6 +56,8 @@ class @HTMLEditingDescriptor
@
visualEditor
=
ed
# These events were added to the plugin code as the TinyMCE PluginManager
# does not fire any events when plugins are opened or closed.
ed
.
on
(
'SaveImage'
,
@
imageAdded
)
ed
.
on
(
'ShowCodeMirror'
,
@
showCodeEditor
)
ed
.
on
(
'SaveCodeMirror'
,
@
saveCodeEditor
)
...
...
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