在blazor编辑器SfDocumentEditorContainer字体下拉菜单中添加更多字体



我是blazor的初学者,使用syncfusion组件。我想将字体添加到SfDocumentEditorContainer字体下拉菜单中。

我在看到syncfusion评论

https://www.syncfusion.com/forums/157923/add-more-font-in-blazor-editor-document-component

并尝试了以下代码:

<SfDocumentEditorContainer @ref="container" Height="580px" Width="1300px" EnableToolbar="true" EnableRtl=true DocumentEditorSettings="EditorSettings" >    
<DocumentEditorContainerEvents Created="OnCreated" DocumentChanged="OnDocumentChange" ></DocumentEditorContainerEvents>
</SfDocumentEditorContainer>
@code {
internal string DocumentName { get; set; }
SfDocumentEditorContainer container;
DocumentEditorSettingsModel EditorSettings = new DocumentEditorSettingsModel() { FontFamilies= new string[3] { "Algerian", "Arial","Tahoma" } };
}

但是字体下拉菜单总是默认加载字体。

我使用SyncFusion 20.3.0.47。

谢谢你对身体的帮助。

我们已确认报告的问题为缺陷,并记录了缺陷报告。我们将在计划于2022年11月16日发布的EJ2补丁中修复此问题。

您可以通过以下反馈链接跟踪错误的状态:

https://www.syncfusion.com/feedback/38618/font-family-customization-is-not-working-in-properties-pane

免责声明:"由于其他因素,包括但不限于QA检查和工作重新排序,本解决方案在每周发布中的包含可能会发生变化。">

最新更新