{"id":7859,"date":"2026-02-02T10:05:40","date_gmt":"2026-02-02T10:05:40","guid":{"rendered":"https:\/\/community.amdox.com\/?page_id=7859"},"modified":"2026-02-09T07:44:08","modified_gmt":"2026-02-09T07:44:08","slug":"new-discussion","status":"publish","type":"page","link":"https:\/\/community.amdox.com\/zh\/new-discussion\/","title":{"rendered":"\u53d1\u5e03\u8d34\u6587"},"content":{"rendered":"<style>\n\/* Keep editor structurally alive *\/\n#bbp_editor_topic_content_forums_editor_1 {\n  min-height: 140px;\n  line-height: 1.6;\n  outline: none;\n  white-space: pre-wrap;\n  word-break: break-word;\n}\n\n\/* Proper placeholder rendering *\/\n#bbp_editor_topic_content_forums_editor_1:empty::before {\n  content: attr(data-placeholder);\n  color: #9aa0a6;\n  pointer-events: none;\n  display: block;\n}\n\n\/* Prevent weird flex\/height stretching from theme *\/\n.bbp-the-content-wrapper {\n  display: block !important;\n}\n<\/style>\n\n\n\n\n<div id=\"bbpress-forums\">\n\n\t<div class=\"bbp-breadcrumb\"><p><a href=\"https:\/\/community.amdox.com\/zh\/\" class=\"bbp-breadcrumb-home\">\u793e\u533a\u4e3b\u9875<\/a> <span class=\"bbp-breadcrumb-sep\">'<\/span> <a href=\"https:\/\/community.amdox.com\/zh\/forums-2\/\" class=\"bbp-breadcrumb-root\">\u8bba\u575b<\/a> <span class=\"bbp-breadcrumb-sep\">'<\/span> <span class=\"bbp-breadcrumb-current\">\u53d1\u5e03\u8d34\u6587<\/span><\/p><\/div>\n\n\n\n\t<div id=\"no-topic-0\" class=\"bbp-no-topic\">\n\t\t<div class=\"bp-feedback info\">\n\t\t\t<span class=\"bp-icon\" aria-hidden=\"true\"><\/span>\n\t\t\t<p>\u60a8\u5fc5\u987b\u767b\u5f55\u540e\u624d\u80fd\u521b\u5efa\u65b0\u7684\u8ba8\u8bba\u3002.<\/p>\n\t\t<\/div>\n\t<\/div>\n\n\n\n<\/div>\n\n\n\n\n\n<script>\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n  const editor = document.getElementById(\n    \"bbp_editor_topic_content_forums_editor_1\"\n  );\n\n  if (!editor) return;\n\n  function normalizeEditor() {\n    const html = editor.innerHTML\n      .replace(\/<br\\s*\\\/?>\/gi, \"\")\n      .replace(\/&nbsp;\/gi, \"\")\n      .trim();\n\n    if (html === \"\") {\n      editor.innerHTML = \"<p><br><\/p>\";\n      placeCaretInside(editor);\n    }\n  }\n\n  function placeCaretInside(el) {\n    el.focus();\n\n    const range = document.createRange();\n    const sel = window.getSelection();\n\n    range.selectNodeContents(el);\n    range.collapse(true);\n\n    sel.removeAllRanges();\n    sel.addRange(range);\n  }\n\n  \/* Run when user deletes everything *\/\n  editor.addEventListener(\"input\", normalizeEditor);\n\n  \/* Extra safety for backspace edge-case *\/\n  editor.addEventListener(\"keydown\", (e) => {\n    if (e.key === \"Backspace\") {\n      setTimeout(normalizeEditor, 0);\n    }\n  });\n\n  \/* Initial stabilization *\/\n  normalizeEditor();\n});\n\n\n\n\n\n\n\n\n\n\n\n\n\n\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n  const editor = document.getElementById(\n    \"bbp_editor_topic_content_forums_editor_1\"\n  );\n\n  if (!editor) return;\n\n  \/* 1. Tell browser + Google + TranslatePress \u2192 HANDS OFF *\/\n  editor.setAttribute(\"translate\", \"no\");\n  editor.setAttribute(\"data-no-translation\", \"true\");\n  editor.classList.add(\"notranslate\");\n\n  \/* 2. Also protect the wrapper *\/\n  const wrapper = editor.closest(\".bbp-the-content-wrapper\");\n  if (wrapper) {\n    wrapper.setAttribute(\"translate\", \"no\");\n    wrapper.setAttribute(\"data-no-translation\", \"true\");\n    wrapper.classList.add(\"notranslate\");\n  }\n\n  \/* 3. Kill mutation from TranslatePress by freezing subtree *\/\n  const observer = new MutationObserver((mutations) => {\n    mutations.forEach((m) => {\n      if (m.type === \"childList\" || m.type === \"characterData\") {\n        observer.disconnect(); \/\/ stop TranslatePress loop\n        observer.observe(editor, { childList: true, subtree: true });\n      }\n    });\n  });\n\n  observer.observe(editor, { childList: true, subtree: true });\n});\n\n<\/script>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-7859","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/community.amdox.com\/zh\/wp-json\/wp\/v2\/pages\/7859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/community.amdox.com\/zh\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/community.amdox.com\/zh\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/community.amdox.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/community.amdox.com\/zh\/wp-json\/wp\/v2\/comments?post=7859"}],"version-history":[{"count":0,"href":"https:\/\/community.amdox.com\/zh\/wp-json\/wp\/v2\/pages\/7859\/revisions"}],"wp:attachment":[{"href":"https:\/\/community.amdox.com\/zh\/wp-json\/wp\/v2\/media?parent=7859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}