簡體   English   中英

如何啟用基於瀏覽器的 tinymce 拼寫檢查器

[英]how to enable browser-based tinymce spellchecker

我正在處理一個 tinymce 版本 3.9.3。

由於某種原因,瀏覽器拼寫檢查器不起作用。

我也嘗試使用 setup 屬性,但是當我啟用它時,我丟失了所有樣式。

這是我的代碼:

    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"
            },
        ]
    });

你有什么想法為什么它不起作用? 可以幫助?

我個人認為我是一個快速學習者。

我使用以下屬性解決了:

gecko_spellcheck: true

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM