Skip to content

Commit 6472e2f

Browse files
authored
Merge pull request #7272 from syncfusion-content/874804-accessibility
Updated Blazor Block Editor component Getting Started UG documentation
2 parents bf273b9 + f2c7008 commit 6472e2f

File tree

3 files changed

+82
-2
lines changed

3 files changed

+82
-2
lines changed

blazor/blockeditor/getting-started-wasm-app.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,47 @@ Add the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Block Editor com
192192
{% tabs %}
193193
{% highlight razor %}
194194

195-
<SfBlockEditor ID="block-editor" />
195+
<SfBlockEditor Blocks="blockDataOverview">
196+
</SfBlockEditor>
197+
198+
@code {
199+
private List<BlockModel> blockDataOverview = new EditorBlockData().GetBlockDataOverview();
200+
201+
public class EditorBlockData
202+
{
203+
public List<BlockModel> GetBlockDataOverview()
204+
{
205+
List<BlockModel> blockDataOverview = new List<BlockModel>
206+
{
207+
new BlockModel
208+
{
209+
BlockType = BlockType.Heading,
210+
Properties = new HeadingBlockSettings{ Level=2 },
211+
Content =
212+
{
213+
new ContentModel
214+
{
215+
ContentType = ContentType.Text,
216+
Content = "Getting Started with Block Editor"
217+
}
218+
}
219+
},
220+
new BlockModel
221+
{
222+
BlockType = BlockType.Paragraph,
223+
Content =
224+
{
225+
new ContentModel { ContentType=ContentType.Text, Content="Welcome to" },
226+
new ContentModel { ContentType=ContentType.Text, Content=" Block Editor", Properties=new TextContentSettings{ Styles = new StyleModel{ Bold = true } } },
227+
new ContentModel { ContentType=ContentType.Text, Content=" - your flexible, modular workspace for creating rich, structured content. whether you're drafting documents, brainstorming ideas, or collaborating with your team, Block Editor makes it simple and intuitive." }
228+
}
229+
},
230+
new BlockModel{ BlockType = BlockType.Paragraph, Content = new List<ContentModel>() }
231+
};
232+
return blockDataOverview;
233+
}
234+
}
235+
}
196236

197237
{% endhighlight %}
198238
{% endtabs %}

blazor/blockeditor/getting-started-web-app.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,47 @@ N> If an **Interactivity Location** is set to `Global` and the **Render Mode** i
245245
{% tabs %}
246246
{% highlight razor %}
247247

248-
<SfBlockEditor ID="block-editor" />
248+
<SfBlockEditor Blocks="blockDataOverview">
249+
</SfBlockEditor>
250+
251+
@code {
252+
private List<BlockModel> blockDataOverview = new EditorBlockData().GetBlockDataOverview();
253+
254+
public class EditorBlockData
255+
{
256+
public List<BlockModel> GetBlockDataOverview()
257+
{
258+
List<BlockModel> blockDataOverview = new List<BlockModel>
259+
{
260+
new BlockModel
261+
{
262+
BlockType = BlockType.Heading,
263+
Properties = new HeadingBlockSettings{ Level=2 },
264+
Content =
265+
{
266+
new ContentModel
267+
{
268+
ContentType = ContentType.Text,
269+
Content = "Getting Started with Block Editor"
270+
}
271+
}
272+
},
273+
new BlockModel
274+
{
275+
BlockType = BlockType.Paragraph,
276+
Content =
277+
{
278+
new ContentModel { ContentType=ContentType.Text, Content="Welcome to" },
279+
new ContentModel { ContentType=ContentType.Text, Content=" Block Editor", Properties=new TextContentSettings{ Styles = new StyleModel{ Bold = true } } },
280+
new ContentModel { ContentType=ContentType.Text, Content=" - your flexible, modular workspace for creating rich, structured content. whether you're drafting documents, brainstorming ideas, or collaborating with your team, Block Editor makes it simple and intuitive." }
281+
}
282+
},
283+
new BlockModel{ BlockType = BlockType.Paragraph, Content = new List<ContentModel>() }
284+
};
285+
return blockDataOverview;
286+
}
287+
}
288+
}
249289

250290
{% endhighlight %}
251291
{% endtabs %}
76.1 KB
Loading

0 commit comments

Comments
 (0)