Welcome to the Angular feedback portal. We’re happy you’re here! If you have feedback on how to improve the Angular, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hello,
I am having the next error when I try to use the sample given in https://ej2.syncfusion.com/angular/documentation/rich-text-editor/getting-started/?no-cache=1
ERROR TypeError: str.match is not a function
at evalExp (template.js:65)
at compile (template.js:52)
at Object.push../node_modules/@syncfusion/ej2-richtexteditor/node_modules/@syncfusion/ej2-base/src/template-engine.js.Engine.compile (template-engine.js:57)
at compile (template-engine.js:16)
at RichTextEditorComponent.push../node_modules/@syncfusion/ej2-richtexteditor/src/rich-text-editor/base/rich-text-editor.js.RichTextEditor.setValue (rich-text-editor.js:945)
at RichTextEditorComponent.push../node_modules/@syncfusion/ej2-richtexteditor/src/rich-text-editor/base/rich-text-editor.js.RichTextEditor.setContainer (rich-text-editor.js:164)
at RichTextEditorComponent.push../node_modules/@syncfusion/ej2-richtexteditor/src/rich-text-editor/base/rich-text-editor.js.RichTextEditor.preRender (rich-text-editor.js:157)
at RichTextEditorComponent.push../node_modules/@syncfusion/ej2-richtexteditor/node_modules/@syncfusion/ej2-base/src/component.js.Component.appendTo (component.js:127)
at RichTextEditorComponent.push../node_modules/@syncfusion/ej2-angular-richtexteditor/node_modules/@syncfusion/ej2-angular-base/src/form-base.js.FormBase.ngAfterViewInit (form-base.js:54)
at callProviderLifecycles (core.js:22416)
this is the template:
this is the component
and the custom module imported
The error happen on the execution of the line 945 of rich-text-editor.js
var compiledString = void 0;
compiledString = compile(this.valueTemplate);
var compiledTemplate = compiledString({});