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
c26b958f
Commit
c26b958f
authored
May 28, 2015
by
Daniel Friedman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable the browser's spellcheck in tinymce
TNL-1621
parent
4eaa12d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
common/lib/xmodule/xmodule/js/spec/html/edit_spec.coffee
+2
-0
common/lib/xmodule/xmodule/js/src/html/edit.coffee
+3
-1
No files found.
common/lib/xmodule/xmodule/js/spec/html/edit_spec.coffee
View file @
c26b958f
...
...
@@ -38,6 +38,8 @@ describe 'HTMLEditingDescriptor', ->
@
descriptor
.
initInstanceCallback
(
visualEditorStub
)
expect
(
visualEditorStub
.
getContent
()).
toEqual
(
'text /c4x/foo/bar/asset/image.jpg'
)
it
'Enables spellcheck'
,
->
expect
(
$
(
'.html-editor iframe'
)[
0
].
contentDocument
.
body
.
spellcheck
).
toBe
(
true
)
describe
'Raw HTML Editor'
,
->
beforeEach
->
loadFixtures
'html-editor-raw.html'
...
...
common/lib/xmodule/xmodule/js/src/html/edit.coffee
View file @
c26b958f
...
...
@@ -105,7 +105,9 @@ class @HTMLEditingDescriptor
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 parameter.
init_instance_callback
:
@
initInstanceCallback
init_instance_callback
:
@
initInstanceCallback
,
browser_spellcheck
:
true
})
tinymce
.
addI18n
(
'en'
,
{
###
...
...
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