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
f2b43ec4
Commit
f2b43ec4
authored
Jan 24, 2013
by
Don Mitchell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1343 from MITx/feature/christina/tiny-mce
Make code inline instead of block.
parents
abcc5c02
711cc9a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
common/lib/xmodule/xmodule/js/src/html/edit.coffee
+7
-3
No files found.
common/lib/xmodule/xmodule/js/src/html/edit.coffee
View file @
f2b43ec4
...
...
@@ -20,13 +20,17 @@ class @HTMLEditingDescriptor
theme
:
"advanced"
,
skin
:
'studio'
,
schema
:
"html5"
,
# Necessary to preserve relative URLs to our images.
convert_urls
:
false
,
# TODO: we should share this CSS with studio (and LMS)
content_css
:
"/static/css/tiny-mce.css"
,
# Disable h4, h5, and h6 styles as we don't have CSS for them.
formats
:
{
# Disable h4, h5, and h6 styles as we don't have CSS for them.
h4
:
{},
h5
:
{},
h6
:
{}
h6
:
{},
# tinyMCE does block level for code by default
code
:
{
inline
:
'code'
}
},
# Disable visual aid on borderless table.
visual
:
false
,
...
...
@@ -50,7 +54,7 @@ class @HTMLEditingDescriptor
@
setupTinyMCE
:
(
ed
)
->
ed
.
addButton
(
'wrapAsCode'
,
{
title
:
'Code
Block
'
,
title
:
'Code'
,
image
:
'/static/images/ico-tinymce-code.png'
,
onclick
:
()
->
ed
.
formatter
.
toggle
(
'code'
)
...
...
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