Enable browser_spellcheck by default in tinymce
closes CNVS-19703 Without this setting you only get browser spellcheck if you right click on a world and explicitly ask for spelling suggestions. Change-Id: I9655b31ed5fac7a4bd4216a419b49ab9a0d667d2 Reviewed-on: https://gerrit.instructure.com/51622 Reviewed-by: Cody Cutrer <cody@instructure.com> Tested-by: Jenkins QA-Review: August Thornton <august@instructure.com> Product-Review: Ethan Vizitei <evizitei@instructure.com>
This commit is contained in:
parent
b12d5cf864
commit
c5f77d76f4
|
@ -69,7 +69,8 @@ define([], function(){
|
|||
extended_valid_elements : "@[id|accesskey|class|dir|lang|style|tabindex|title|contenteditable|contextmenu|draggable|dropzone|hidden|spellcheck|translate|align|role|aria-labelledby|aria-atomic|aria-busy|aria-controls|aria-describedby|aria-disabled|aria-dropeffect|aria-flowto|aria-grabbed|aria-haspopup|aria-hidden|aria-invalid|aria-label|aria-labelledby|aria-live|aria-owns|aria-relevant|aria-autocomplete|aria-checked|aria-disabled|aria-expanded|aria-haspopup|aria-hidden|aria-invalid|aria-label|aria-level|aria-multiline|aria-multiselectable|aria-orientation|aria-pressed|aria-readonly|aria-required|aria-selected|aria-sort|aria-valuemax|aria-valuemin|aria-valuenow|aria-valuetext],iframe[src|width|height|name|align|style|class|sandbox|allowfullscreen|webkitallowfullscreen|mozallowfullscreen],i[iclass],a[hidden|href|target|rel|media|hreflang|type|charset|name|rev|shape|coords|download],div,p,h2,h3,h4,h5,h6,header,ul,ol,li[value],ol[reversed|start|type|compact],pre[width],table[border|summary|width|frame|rules|cellspacing|cellpadding|bgcolor],tbody[char|charoff|valign],td[colspan|rowspan|headers|abbr|axis|scope|align|char|charoff|valign|nowrap|bgcolor|width|height],tfoot[char|charoff|valign],th[colspan|rowspan|headers|scope|abbr|axis|align|char|charoff|valign|nowrap|bgcolor|width|height],thead[char|charoff|valign],title,tr[char|charoff|valign|bgcolor],ul[compact]",
|
||||
|
||||
non_empty_elements: 'td th iframe video audio object script a i area base basefont br col frame hr img input isindex link meta param embed source wbr track',
|
||||
content_css: "/stylesheets_compiled/legacy_normal_contrast/bundles/what_gets_loaded_inside_the_tinymce_editor.css"
|
||||
content_css: "/stylesheets_compiled/legacy_normal_contrast/bundles/what_gets_loaded_inside_the_tinymce_editor.css",
|
||||
browser_spellcheck : true
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -67,3 +67,8 @@ define ['tinymce.config'], (EditorConfig)->
|
|||
config = new EditorConfig(tinymce, INST, largeScreenWidth, dom_id)
|
||||
schema = config.defaultConfig()
|
||||
equal(schema.skin_url, "/vendor/tinymce_themes/light")
|
||||
|
||||
test "browser spellcheck enabled by default", ->
|
||||
config = new EditorConfig(tinymce, INST, largeScreenWidth, dom_id)
|
||||
schema = config.defaultConfig()
|
||||
equal(schema.browser_spellcheck, true)
|
||||
|
|
Loading…
Reference in New Issue