Hi
I would like to get the font family of the selected text or cursor near to the text.
how could I get that value?
I have also attached the video.
I am using custom toolbar for the editor.
<e-item type="Input" tooltipText="Schriftart ändern">
<ng-template #template>
<ejs-combobox [dataSource]='fontStyle' [width]='120' [index]='2' [allowCustom]=true
(change)='onFontFamilyChange($event)' [showClearButton]=false></ejs-combobox>
</ng-template>
</e-item>
please provide me appropriate solution to change value of selected font family.
Regards,
Parth
|
this.container.documentEditor.selection.characterFormat.fontFamily
|
Hi Suriya,
Thanks a lot for your solution. it's working now.
Regards,
Parth
Hi Suriya,
When I tried to apply bullet and numbering to the heading it throws an error in console.
I have attached the video with error message.
this.documentEditor.editor.applyBullet('\uf0b7', 'Symbol');
This is how I apply bulltes.
Regards,
Parth
|
public onToolbarClick(args: ClickEventArgs): void {
switch (args.item.id) {
case 'Custom':
this.container.documentEditor.editor.applyBullet('\uf0b7', 'Symbol');
break;
}
};
|
Hi Kurthis,
I have changed the stakblitz example and now I can reproduce error again. I have also attached the video overview of the error.
What I am trying to achive:
https://stackblitz.com/edit/angular-9g6agb-mmrqxf?file=app.component.html
Please take a look my problem and provide me solution.
Hi Parth,
Apologies!
We are unable to include the fix in our latest release because of technical issue. We will fix this issue and include in our EJ2 patch release which is scheduled on January 19,2021.
You can track the status of bug through below feedback link:
Regards,
Suriya M.