我使用LinguaPlone 4.1.3和Plone 4.3的实例,并且在点击"翻译成......"并选择其中一种语言,在以下编辑屏幕上,TinyMCE编辑器不会显示。
我可以在右侧的下拉菜单中切换到Plone输出HTML,它只给我HTML框。但是,没有任何选项显示TinyMCE编辑器。当编辑普通页面(即未翻译的内容)时,TinyMCE工作正常 - 它被设置为网站的默认页面,也是我个人偏好中的默认设置。
任何解决这个问题或寻找什么的想法都会很棒!在同一个Plone实例的另一个站点上,翻译功能正常(TinyMCE显示应该如此)。
另外,如果它有帮助,这里是编辑器所在区域的输出HTML。谢谢!
<div data-fieldname="text" data-uid="c61b5fcb98874fe3a3cf16538bcf88e3" id="archetypes-fieldname-text" class="field ArchetypesRichWidget ">
<span></span>
<label for="text" class="formQuestion">
Body Text
<span id="text_help" class="formHelp"></span>
</label>
<div class="fieldErrorBox"></div>
<div class="fieldTextFormat">
<label>Text Format</label>
<select name="text_text_format" id="text_text_format" tabindex="-1">
<option value="text/html" selected="selected">HTML</option>
<option value="text/x-web-textile">Textile</option>
<option value="text/x-plone-outputfilters-html">Plone Output Filters HTML</option>
</select>
</div>
<div>
<div>
<textarea data-mce-config="{"link_shortcuts_html": ["\n <img src=\"img/home.png\" />\n <a id=\"home\" href=\"http://169.237.124.123:8082/ChinaApple\">Home</a>\n ", "\n <img src=\"img/folder_current.png\" />\n <a id=\"currentfolder\" href=\"http://169.237.124.123:8082/ChinaApple/improving-information-use/improving-information-use-zh\">Current Folder</a>\n "], "theme": "advanced", "theme_advanced_path_location": "bottom", "entity_encoding": "raw", "plugins": "advhr,definitionlist,directionality,emotions,fullscreen,inlinepopups,insertdatetime,media,nonbreaking,noneditable,pagebreak,paste,plonebrowser,ploneinlinestyles,plonestyle,preview,print,save,searchreplace,tabfocus,table,visualchars,xhtmlxtras,contextmenu", "theme_advanced_path": false, "allow_captioned_images": true, "atd_rpc_id": "Products.TinyMCE-admin", "theme_advanced_source_editor_height": 400, "directionality": "ltr", "table_styles": "Fancy listing=listing;Invisible grid=invisible", "theme_advanced_resizing": true, "theme_advanced_buttons2": "link,unlink,anchor,tablecontrols,code,fullscreen", "theme_advanced_buttons3": "", "theme_advanced_buttons1": "style,bold,italic,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,definitionlist,outdent,indent,image", "theme_advanced_buttons4": "", "buttons": ["style", "bold", "italic", "justifyleft", "justifycenter", "justifyright", "justifyfull", "bullist", "numlist", "definitionlist", "outdent", "indent", "image", "link", "unlink", "anchor", "tablecontrols", "code", "fullscreen"], "document_url": "http://169.237.124.123:8082/ChinaApple/improving-information-use/improving-information-use-zh", "autoresize": false, "valid_inline_styles": "text-align,list-style-type,float,padding-left", "toolbar_width": 440, "language": "zh", "mode": "exact", "theme_advanced_styles": "[{ title: \"Text\", tag: \"\", className: \"-\", type: \"Text\" },{ title: \"Normal paragraph\", tag: \"p\", className: \" \", type: \"Text\" },{ title: \"Call-out\", tag: \"p\", className: \"callout\", type: \"Text\" },{ title: \"Clear floats\", tag: \"div\", className: \"visualClear\", type: \"Text\" },{ title: \"Heading\", tag: \"h2\", className: \" \", type: \"Text\" },{ title: \"Literal\", tag: \"pre\", className: \" \", type: \"Text\" },{ title: \"Pull-quote\", tag: \"blockquote\", className: \"pullquote\", type: \"Text\" },{ title: \"Subheading\", tag: \"h3\", className: \" \", type: \"Text\" },{ title: \"Selection\", tag: \"\", className: \"-\", type: \"Selection\" },{ title: \"(remove style)\", tag: \"\", className: \"\", type: \"Selection\" },{ title: \"Discreet\", tag: \"span\", className: \"discreet\", type: \"Selection\" },{ title: \"Highlight\", tag: \"span\", className: \"visualHighlight\", type: \"Selection\" },{ title: \"Tables\", tag: \"table\", className: \"-\", type: \"Tables\" },{ title: \"Plain cell\", tag: \"td\", className: \" \", type: \"Tables\" },{ title: \"Fancy listing\", tag: \"table\", className: \"listing\", type: \"Tables\" },{ title: \"Invisible grid\", tag: \"table\", className: \"invisible\", type: \"Tables\" },{ title: \"Even row\", tag: \"tr\", className: \"even\", type: \"Tables\" },{ title: \"Heading cell\", tag: \"th\", className: \" \", type: \"Tables\" },{ title: \"Odd row\", tag: \"tr\", className: \"odd\", type: \"Tables\" },{ title: \"Lists\", tag: \"ul\", className: \"-\", type: \"Lists\" },{ title: \"Lists\", tag: \"ol\", className: \"-\", type: \"Lists\" },{ title: \"Lists\", tag: \"dl\", className: \"-\", type: \"Lists\" },{ title: \"Lists\", tag: \"dl\", className: \" \", type: \"Lists\" },{ title: \"Circle\", tag: \"ul\", className: \"listTypeCircle\", type: \"Lists\" },{ title: \"Definition description\", tag: \"dd\", className: \" \", type: \"Lists\" },{ title: \"Definition term\", tag: \"dt\", className: \" \", type: \"Lists\" },{ title: \"Disc\", tag: \"ul\", className: \"listTypeDisc\", type: \"Lists\" },{ title: \"Lower Alpha\", tag: \"ol\", className: \"listTypeLowerAlpha\", type: \"Lists\" },{ title: \"Lower Roman\", tag: \"ol\", className: \"listTypeLowerRoman\", type: \"Lists\" },{ title: \"Numbers\", tag: \"ol\", className: \"listTypeDecimal\", type: \"Lists\" },{ title: \"Square\", tag: \"ul\", className: \"listTypeSquare\", type: \"Lists\" },{ title: \"Upper Alpha\", tag: \"ol\", className: \"listTypeUpperAlpha\", type: \"Lists\" },{ title: \"Upper Roman\", tag: \"ol\", className: \"listTypeUpperRoman\", type: \"Lists\" },{ title: \"Print\", tag: \"\", className: \"-\", type: \"Print\" },{ title: \"Page break (print only)\", tag: \"div\", className: \"pageBreak\", type: \"Print\" }]", "theme_advanced_toolbar_align": "left", "media_strict": false, "body_id": "content", "labels": {"label_style_ldots": "Style...", "label_addnewimage": "Add new Image", "label_browseimage": "Image Browser", "label_paragraph": "Normal paragraph", "label_print": "Print", "label_search_results": "Search results:", "label_internal_path": "you_are_here", "label_no_items": "No items in this folder", "label_browser": "Browser", "label_shortcuts": "Shortcuts", "label_addnewfile": "Add new File", "label_styles": "(remove style)", "label_tables": "Tables", "label_selection": "Selection", "label_browselink": "Link Browser", "label_text": "Text", "label_lists": "Lists", "label_no_anchors": "No anchors in this page", "label_plain_cell": "Plain cell"}, "rooted": false, "navigation_root_url": "http://169.237.124.123:8082/ChinaApple", "theme_advanced_source_editor_width": 600, "document_base_url": "http://169.237.124.123:8082/ChinaApple/improving-information-use/", "theme_advanced_resizing_use_cookie": true, "fix_list_elements": false, "inlinepopups_skin": "plonepopup", "portal_url": "http://169.237.124.123:8082/ChinaApple", "valid_elements": "i[class|dir|id|style|title],article[class|dir|id|style|title],a[accesskey|charset|class|coords|dir|href|hreflang|id|name|rel|rev|shape|style|tabindex|target|title|type],object[align|archive|class|classid|codebase|codetype|data|declare|dir|height|hspace|id|name|standby|style|tabindex|title|type|usemap|vspace|width],q[cite|class|dir|id|style|title],u[class|dir|id|style|title],bdo[class|dir|id|style|title],hgroup[class|dir|id|style|title],acronym[class|dir|id|style|title],ul[class|compact|dir|id|style|title|type],var[class|dir|id|style|title],sup[class|dir|id|style|title],colgroup[align|char|charoff|class|dir|id|span|style|title|width],embed[*],col[align|char|charoff|class|dir|id|span|style|title|width],sub[class|dir|id|style|title],nav[class|dir|id|style|title],strong[class|dir|id|style|title],map[class|dir|id|name|title],datalist[class|dir|id|style|title],address[class|dir|id|style|title],tfoot[align|char|charoff|class|dir|id|style|title],dd[class|dir|id|style|title],ruby[class|dir|id|style|title],dl[class|compact|dir|id|style|title],video[class|dir|id|style|title],#p[align|class|dir|id|style|title],dt[class|dir|id|style|title],footer[class|dir|id|style|title],body[alink|background|class|dir|id|link|style|text|title|vlink],meter[class|dir|id|style|title],area[accesskey|alt|class|coords|dir|href|id|nohref|shape|style|tabindex|target|title],dialog[class|dir|id|style|title],html[dir|id|xmlns],small[class|dir|id|style|title],cite[class|dir|id|style|title],details[class|dir|id|style|title],header[class|dir|id|style|title],aside[class|dir|id|style|title],del[cite|class|datetime|dir|id|style|title],keygen[class|dir|id|style|title],figure[class|dir|id|style|title],audio[class|dir|id|style|title],abbr[class|dir|id|style|title],canvas[class|dir|id|style|title],mark[class|dir|id|style|title],br[class|clear|id|style|title],div[align|class|dir|id|style|title],table[align|class|dir|id|style|summary|title],command[class|dir|id|style|title],caption[align|class|dir|id|style|title],source[class|dir|id|style|title],samp[class|dir|id|style|title],rt[class|dir|id|style|title],tt[class|dir|id|style|title],thead[align|char|charoff|class|dir|id|style|title],tr[align|char|charoff|class|dir|id|style|title],meta[content|dir|http-equiv|id|name|scheme],tbody[align|char|charoff|class|dir|id|style|title],td[abbr|align|axis|char|charoff|class|colspan|dir|headers|id|nowrap|rowspan|scope|style|title],output[class|dir|id|style|title],ol[class|compact|dir|id|style|title|type],th[abbr|align|axis|char|charoff|class|colspan|dir|headers|id|nowrap|rowspan|scope|style|title],blockquote[cite|class|dir|id|style|title],b[class|dir|id|style|title],span[class|dir|id|style|title],title[dir|id],time[class|dir|id|style|title],iframe[align|class|dir|frameborder|height|id|longdesc|marginheight|marginwidth|name|scrolling|src|style|title|width],dfn[class|dir|id|style|title],img[align|alt|class|dir|height|hspace|id|ismap<ismap|longdesc|name|src|style|title|usemap|vspace|width],ins[cite|class|datetime|dir|id|style|title],hr[align|class|dir|id|noshade|size|style|title|width],progress[class|dir|id|style|title],h6[align|class|dir|id|style|title],em[class|dir|id|style|title],base[href|id|target],script[charset|defer|id|language|src|type],pre[class|dir|id|style|title|width],kbd[class|dir|id|style|title],section[class|dir|id|style|title],rp[class|dir|id|style|title],li[class|dir|id|style|title|type],head[dir|id|profile],code[class|dir|id|style|title],h3[align|class|dir|id|style|title],h2[align|class|dir|id|style|title],h1[align|class|dir|id|style|title],param[id|name|type|value|valuetype],h5[align|class|dir|id|style|title],h4[align|class|dir|id|style|title],big[class|dir|id|style|title]", "content_css": "http://169.237.124.123:8082/ChinaApple/portal_tinymce/@@tinymce-getstyle", "theme_advanced_resize_horizontal": false, "link_using_uids": true, "atd_ignore_strings": "Zope,Plone,TinyMCE", "contextmenu": true, "livesearch": true, "body_class": "documentContent", "thumbnail_size": ["tile", 64, 64], "skin": "plone", "anchor_selector": "h2,h3", "atd_show_types": "Bias Language,Cliches,Complex Expression,Diacritical Marks,Double Negatives,Hidden Verbs,Jargon Language,Passive voice,Phrases to Avoid,Redundant Expression", "atd_rpc_url": "http://169.237.124.123:8082/ChinaApple/@@", "script_url": "http://169.237.124.123:8082/ChinaApple/tiny_mce_gzip.js", "customplugins": ["plonebrowser"], "num_of_thumb_columns": 4, "table_firstline_th": true, "image_shortcuts_html": ["\n <img src=\"img/home.png\" />\n <a id=\"home\" href=\"http://169.237.124.123:8082/ChinaApple\">Home</a>\n ", "\n <img src=\"img/folder_current.png\" />\n <a id=\"currentfolder\" href=\"http://169.237.124.123:8082/ChinaApple/improving-information-use/improving-information-use-zh\">Current Folder</a>\n "], "theme_advanced_toolbar_location": "top", "gecko_spellcheck": true}" data-pattern="plone-tinymce" class="mce_editable" id="text" name="text" rows="25" cols="40" style="visibility: hidden;"></textarea>
<div style="margin-top: -1em; display: none;" class="discreet suppressVisualEditor">
<a href="http://169.237.124.123:8082/ChinaApple/improving-information-use/improving-information-use-zh/translate_item?tinymce.suppress=text&">
Edit without visual editor
</a>
</div>
</div>
</div>
<div class="fieldUploadFile">
<span class="discreet">or upload a file (existing content will be replaced)</span>
<input type="file" name="text_file" id="text_file" size="30" originalvalue="">
</div>
</div>
JS调试控制台说:
Failed to load: http://169.237.124.123:8082/ChinaApple/langs/zh.js
答案 0 :(得分:2)
@eleddy解决了!!以下是她的回复:
哟哟哟哟!对于那些不了解的人,中文(中国)是一种组合语言,所以你必须进入ZMI中的portal_language工具,并选中“#34;允许组合语言&#34;”,然后选择另一个中国人会出现。之后两瓶庆祝啤酒,你到处都是Chineing。答案 1 :(得分:0)
简体中文(zh_CN)通常称为短中文(zh)
在视图中@@ language-controlpanel 可用语言(站点应该可以翻译的语言。) 精选中国(中国)&#39;而不是“中国人”。