[英]how to enable browser-based tinymce spellchecker
I am dealing with a tinymce version 3.9.3.我正在处理一个 tinymce 版本 3.9.3。
For some reason the browser spellchecker doesn't work.由于某种原因,浏览器拼写检查器不起作用。
I tried using also the setup attribute but when I enabled it I lost all the styles.我也尝试使用 setup 属性,但是当我启用它时,我丢失了所有样式。
This is my code:这是我的代码:
tinyMCE.init({
// General options
mode : "textareas",
browser_spellcheck: true,
/*setup : function(ed) {
ed.on('init', function(evt) {
ed.getBody().setAttribute('spellcheck', true);
});
},*/
language : "<?=$_SESSION['interface_lang'];?>",
valid_elements : '*[*]',
forced_root_block: false ,
theme : "advanced",
plugins: "style,table,template",
// Theme options
theme_advanced_buttons1 : "formatselect,fontsizeselect,styleselect,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,cut,copy,paste,undo,redo,link,unlink,template",
theme_advanced_buttons2 : "bullist,numlist,image,hr,|,tablecontrols",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
// Skin options
skin : "o2k7",
skin_variant : "silver",
content_style: ".mce-content-body {font-size:15px;font-family:Arial,sans-serif;}",
// Drop lists for link/image/media/template dialogs
template_external_list_url : "/js/template_list.js",
external_link_list_url : "/js/link_list.js",
external_image_list_url : "/js/image_list.js",
media_external_list_url : "/js/media_list.js",
// Replace values for the template plugin
template_replace_values : {
username : "xxx",
staffid : "xxx"
},
template_templates : [
{
title : "Template",
src : "request_templ/tbl_detail3.html",
description : "Approfondimenti"
},
]
});
Have you some ideas why it doesn't work?你有什么想法为什么它不起作用? Can help?
可以帮助?
I personally believe I am a quick learner.我个人认为我是一个快速学习者。
I solved using the following property:我使用以下属性解决了:
gecko_spellcheck: true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.