Skip to content

Commit

Permalink
更新文档[bot]
Browse files Browse the repository at this point in the history
  • Loading branch information
Xheldon committed Dec 15, 2024
1 parent 7452aa0 commit b6eeac0
Show file tree
Hide file tree
Showing 21 changed files with 21,463 additions and 21,266 deletions.
36 changes: 36 additions & 0 deletions dict/docs/changelog/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -4234,5 +4234,41 @@
"Make splitBlock smart enough to split blocks when the cursor is inside a nested inline node.": {
"_translate": "使 <code>splitBlock</code> 足够智能,当光标位于嵌套的行内节点内时能够拆分块。",
"_note": ""
},
"Fix an issue where display: content elements could break posAtCoords.": {
"_translate": "修复了 <code>display: content</code> 元素可能导致 <code>posAtCoords</code> 出现问题的情况。",
"_note": ""
},
"Work around an issue with Chrome reporting the selection incorrectly during composition.": {
"_translate": "解决 Chrome 在组合期间错误报告选择的问题。",
"_note": ""
},
"The parser now automatically preserves whitespace inside <pre> or white-space: pre elements.": {
"_translate": "解析器现在自动保留 <code>&lt;pre&gt;</code> 或 <code>white-space: pre</code> 元素内的空白。",
"_note": ""
},
"The new wrapRangeInList function provides the implementation of the wrapInList command as a more flexible function.": {
"_translate": "新的<code>wrapRangeInList</code>函数以更灵活的函数形式提供了<code>wrapInList</code>命令的实现。",
"_note": ""
},
"Fragment.content and Node.children now expose a node's set of children as an array.": {
"_translate": "<code>Fragment.content</code> 和 <code>Node.children</code> 现在以数组形式公开节点的子集。",
"_note": ""
},
"Fix an issue on Safari where the (incorrect) top-level selection was used, instead of the workaround that also works inside shadow roots.": {
"_translate": "修复了 Safari 上的一个问题,即使用了(错误的)顶级选择,而不是也在阴影根中有效的工作around。",
"_note": ""
},
"Mark views can now provide an ignoreMutation method. Add ViewMutationRecord to doc template": {
"_translate": "Mark 视图现在可以提供一个 <code>ignoreMutation</code> 方法。将 ViewMutationRecord 添加到文档模板中。",
"_note": ""
},
"Don't recreated TrustedTypePolicy objects for every paste.": {
"_translate": "不要为每次粘贴都重新创建 <code>TrustedTypePolicy</code> 对象。",
"_note": ""
},
"Add support for a destroy method on custom mark views. Add MarkView to the doc template": {
"_translate": "在自定义标记视图上添加对 <code>destroy</code> 方法的支持。将 MarkView 添加到文档模板中。",
"_note": ""
}
}
40 changes: 40 additions & 0 deletions dict/docs/ref/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -3166,5 +3166,45 @@
"When given, this will be called when the view is updating itself. It will be given a node, an array of active decorations around the node (which are automatically drawn, and the node view may ignore if it isn't interested in them), and a decoration source that represents any decorations that apply to the content of the node (which again may be ignored). It should return true if it was able to update to that node, and false otherwise. If the node view has a contentDOM property (or no dom property), updating its child nodes will be handled by ProseMirror.": {
"_translate": "当提供时,这将在视图更新自身时被调用。它将被提供一个节点、一个围绕该节点的活动装饰数组(这些装饰会自动绘制,节点视图如果对其不感兴趣可以忽略),以及一个表示适用于节点内容的任何装饰的<a href=\"#view.DecorationSource\">装饰源</a>(同样可以被忽略)。如果它能够更新到该节点,应返回 true,否则返回 false。如果节点视图具有<code>contentDOM</code>属性(或没有<code>dom</code>属性),其子节点的更新将由 ProseMirror 处理。",
"_note": ""
},
"Called when the node view is removed from the editor or the whole editor is destroyed.": {
"_translate": "当节点视图从编辑器中移除或整个编辑器被销毁时调用。",
"_note": ""
},
"Called when a mutation happens within the view. Return false if the editor should re-read the selection or re-parse the range around the mutation, true if it can safely be ignored.": {
"_translate": "当<a href=\"#view.ViewMutationRecord\">变异</a>在视图内发生时调用。如果编辑器应该重新读取选择或重新解析变异周围的范围,则返回false;如果可以安全地忽略,则返回true。",
"_note": ""
},
"Objects returned as mark views must conform to this interface.": {
"_translate": "对象作为标记视图返回时必须符合此接口。",
"_note": ""
},
"By default, document marks are rendered using the result of the toDOM method of their spec, and managed entirely by the editor. For some use cases, you want more control over the behavior of a mark's in-editor representation, and need to define a custom mark view.": {
"_translate": "默认情况下,文档标记使用其规范的 <a href=\"#model.MarkSpec.toDOM\"><code>toDOM</code></a> 方法的结果进行渲染,并完全由编辑器管理。对于某些用例,您需要对标记的编辑器内表示的行为进行更多控制,并需要 <a href=\"#view.EditorProps.markViews\">定义</a> 自定义标记视图。",
"_note": ""
},
"The DOM node that should hold the mark's content. When this is not present, the dom property is used as the content DOM.": {
"_translate": "应包含标记内容的 DOM 节点。当此属性不存在时,<code>dom</code> 属性用作内容 DOM。",
"_note": ""
},
"Called when the mark view is removed from the editor or the whole editor is destroyed.": {
"_translate": "当标记视图从编辑器中移除或整个编辑器被销毁时调用。",
"_note": ""
},
"The array of this node's child nodes.": {
"_translate": "此节点的子节点数组。",
"_note": ""
},
"A ViewMutationRecord represents a DOM mutation or a selection change happens within the view. When the change is a selection change, the record will have a type property of \"selection\" (which doesn't occur for native mutation records).": {
"_translate": "一个 ViewMutationRecord 表示视图内发生的 DOM\n<a href=\"https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver\">变异</a>\n或选择变化。当变化是选择变化时,记录将具有一个 <code>type</code> 属性为\n<code>\"selection\"</code>(对于原生变异记录不会出现这种情况)。",
"_note": ""
},
"The child nodes in this fragment.": {
"_translate": "此片段中的子节点。",
"_note": ""
},
"Try to wrap the given node range in a list of the given type. Return true when this is possible, false otherwise. When tr is non-null, the wrapping is added to that transaction. When it is null, the function only queries whether the wrapping is possible.": {
"_translate": "尝试将给定的节点范围包装在给定类型的列表中。\n返回 <code>true</code> 如果这是可能的,<code>false</code> 否则。当 <code>tr</code>\n非空时,将包装添加到该事务中。当它是\n<code>null</code> 时,该函数仅查询是否可以进行包装。",
"_note": ""
}
}
2 changes: 1 addition & 1 deletion last-commit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4c5b877bb04b70245570d5418add39893adbd218
7c8822d9e157f539f3ef37289a63f736dc92b4a2
6 changes: 3 additions & 3 deletions public/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ pre > code {
}

a.blocklink:hover {
color: #0075ff;
color: #0045ff;
}

nav a.active, a:link, a:visited {
color: #0075ff;
color: #0045ff;
}

a.logo {
Expand Down Expand Up @@ -154,7 +154,7 @@ footer .navlinks {
padding-bottom: 3px;
}

.navlinks > a:hover { color: #0075ff; }
.navlinks > a:hover { color: #0045ff; }

nav#toc a.current-section {
color: black;
Expand Down
25 changes: 24 additions & 1 deletion public/docs/changelog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,30 @@
padding-left: 10px;
margin-left: 0;
}
</style><h2>Version Changelog</h2><h3><a href="../ref/#view">prosemirror-view</a> 1.35.0 (2024-10-29)</h3>
</style><h2>Version Changelog</h2><h3><a href="../ref/#view">prosemirror-view</a> 1.37.1 (2024-12-11)</h3>
<h4>Bug fixes</h4>
<p data-x-en="Fix an issue where display: content elements could break posAtCoords.">修复了 <code>display: content</code> 元素可能导致 <code>posAtCoords</code> 出现问题的情况。</p>
<p data-x-en="Work around an issue with Chrome reporting the selection incorrectly during composition.">解决 Chrome 在组合期间错误报告选择的问题。</p>
<h3><a href="../ref/#model">prosemirror-model</a> 1.24.1 (2024-12-10)</h3>
<h4>Bug fixes</h4>
<p data-x-en="The parser now automatically preserves whitespace inside <pre> or white-space: pre elements.">解析器现在自动保留 <code>&lt;pre&gt;</code><code>white-space: pre</code> 元素内的空白。</p>
<h3><a href="../ref/#schema-list">prosemirror-schema-list</a> 1.5.0 (2024-12-04)</h3>
<h4>New features</h4>
<p data-x-en="The new wrapRangeInList function provides the implementation of the wrapInList command as a more flexible function.">新的<code>wrapRangeInList</code>函数以更灵活的函数形式提供了<code>wrapInList</code>命令的实现。</p>
<h3><a href="../ref/#model">prosemirror-model</a> 1.24.0 (2024-11-27)</h3>
<h4>New features</h4>
<p data-x-en="Fragment.content and Node.children now expose a node's set of children as an array."><code>Fragment.content</code><code>Node.children</code> 现在以数组形式公开节点的子集。</p>
<h3><a href="../ref/#view">prosemirror-view</a> 1.37.0 (2024-11-23)</h3>
<h4>Bug fixes</h4>
<p data-x-en="Fix an issue on Safari where the (incorrect) top-level selection was used, instead of the workaround that also works inside shadow roots.">修复了 Safari 上的一个问题,即使用了(错误的)顶级选择,而不是也在阴影根中有效的工作around。</p>
<h4>New features</h4>
<p data-x-en="Mark views can now provide an ignoreMutation method. Add ViewMutationRecord to doc template">Mark 视图现在可以提供一个 <code>ignoreMutation</code> 方法。将 ViewMutationRecord 添加到文档模板中。</p>
<h3><a href="../ref/#view">prosemirror-view</a> 1.36.0 (2024-11-05)</h3>
<h4>Bug fixes</h4>
<p data-x-en="Don't recreated TrustedTypePolicy objects for every paste.">不要为每次粘贴都重新创建 <code>TrustedTypePolicy</code> 对象。</p>
<h4>New features</h4>
<p data-x-en="Add support for a destroy method on custom mark views. Add MarkView to the doc template">在自定义标记视图上添加对 <code>destroy</code> 方法的支持。将 MarkView 添加到文档模板中。</p>
<h3><a href="../ref/#view">prosemirror-view</a> 1.35.0 (2024-10-29)</h3>
<h4>New features</h4>
<p data-x-en="The new NodeView.multiType flag is now required to opt into handling different node types in a single node view. It used to be the default, but this tripped too many people up.">新的 <code>NodeView.multiType</code> 标志现在需要选择处理单个节点视图中的不同节点类型。它以前是默认的,但这让太多人感到困惑。</p>
<h3><a href="../ref/#commands">prosemirror-commands</a> 1.6.2 (2024-10-24)</h3>
Expand Down
Loading

0 comments on commit b6eeac0

Please sign in to comment.