Hi,
I have configured the RTE as u have directed, but I am facing some issues with it.
I am getting errors in the console as the below,
[DOM] Found 2 elements with non-unique id #Default_toolbar_BackgroundColor_Target: (More info: https://goo.gl/9p2vKq)
<input id="Default_toolbar_BackgroundColor_Target" class="e-rte-backgroundcolor-element">
<input id="Default_toolbar_BackgroundColor_Target" class="e-rte-backgroundcolor-element e-control e-colorpicker" tabindex="-1" spellcheck="false">
[DOM] Found 2 elements with non-unique id #Default_toolbar_FontColor_Target: (More info: https://goo.gl/9p2vKq)
<input id="Default_toolbar_FontColor_Target" class="e-rte-fontcolor-element">
<input id="Default_toolbar_FontColor_Target" class="e-rte-fontcolor-element e-control e-colorpicker" tabindex="-1" spellcheck="false">
I have configured in the following steps,
package.json : "@syncfusion/ej2-ng-richtexteditor": "^16.2.41"
module.ts : import { RichTextEditorAllModule } from '@syncfusion/ej2-ng-richtexteditor';
import { AccordionAllModule } from '@syncfusion/ej2-ng-navigations';
component.html : <ejs-accordion>
<e-accordionitems>
<e-accordionitem expanded='true' header='RichTextEditor'>
<ng-template #content>
<ejs-richtexteditor id='Default' height='250px' [toolbarSettings]='tools' [(ngModel)]="editorVal">
<ng-template #valueTemplate>
The rich text editor component is WYSIWYG.
</ng-template>
</ejs-richtexteditor>
</ng-template>
</e-accordionitem>
</e-accordionitems>
</ejs-accordion>
component. ts : import { RichTextEditorComponent, ToolbarService } from '@syncfusion/ej2-ng-richtexteditor';
import { LinkService, ImageService, MarkdownEditorService, HtmlEditorService} from '@syncfusion/ej2-ng-richtexteditor';
public tools: object = {
items: ['Bold', 'Italic', 'Underline', '|',
'Undo', 'Redo', '|',
'FontColor', 'BackgroundColor', '|']
};
I have also pasted a screenshot of how my page looks with the RTE, please have a look and provide me some solutions.
Thanks.