So I created a very basic document editor,
and added buttons that inserts custom form fields
When I try to right click it
and click properties
I'm seeing this error in the browser logs:
Here's a sample code that I use, which is just very basic usage of syncfusion's document editor
Also when I tired calling this method:
It shows me this error:
Here's the version I'm using:
Though when I tried it on your demo site, it works just fine
HI Min,
We will check and update further details shortly.
Regards,
Ajithamarlin E
Hi Min,
#Formfield issue
Please import and inject the below formfield dialogs in import and inject.
TextFormFieldDialog, CheckBoxFormFieldDialog, DropDownFormFieldDialog
Please add these dialogs in import and inject and let us know whether this resolved the issue at you end.
#Restrict editing issue:
Document editor needs serve side interaction for restrict editing. You have to deploy a webservice for server-client interaction
Please refer the below documentation to know more
https://ej2.syncfusion.com/react/documentation/document-editor/web-services/
https://ej2.syncfusion.com/react/documentation/document-editor/web-services/core/#restrict-editing
Please let us know if you need any further assistance.
Regards,
Ajithamarlin E
Hi Ajithamarlin Edward, the solution above works great! Thank You
My follow up question would be,
How do we customize the UI for dropdown and the textbox:
I want to be able to replace it using our own custom design
In your demo here, you were able to modify the UI for this.
Hi Ajithamarlin Edward, another issue I found,
when I tried custom date inputs
it seems to be broken, and icon is not showing:
Hi Min,
#Regarding I want to be able to replace it using our own
custom design
In your demo here, you
were able to modify the UI for this.
We are sorry to say that currently it is not possible to customize the form field dropdown and text box.
The one in our demo site was in Bootstrap theme, that is why it differs from your application, the theme in your application was material theme.
#Regarding when I tried custom date inputs it seems to be broken, and icon is not showing:
Please share us your document editor version details and the customization coode to validate further.
Regards,
Hi
Ajithamarlin Edward,
Thanks I was able change the theme to bootstrap. But yeah it would have been nicer if we could have the ability to customized that UI.
Anyway here's the my simple source code regarding date not showing dates
let me know what I'm missing here.
Thanks
Btw I have problems using the latest version of SF
so I'm using the last version working that I have used.
See my ticket here:
https://support.syncfusion.com/support/tickets/394232
HI Min,
We are glad to announce that our patch release (v20.2.40) is rolled out successfully. In this release, we have added the fix for the reported issue.
Please upgrade to the latest version packages to resolve this issue.
https://www.npmjs.com/package/@syncfusion/ej2-documenteditor
https://www.npmjs.com/package/@syncfusion/ej2-react-documenteditor
Feedback link: https://www.syncfusion.com/feedback/36447/resolve-script-error-while-adding-custom-context-menu
Please let us know if you need any further assistance
Regards,
Ajithamarlin E
Hi Ajithamarlin Edward,
I just tested this today with v20.2.40 and v20.2.45 and the icon for date custom field is still not showing.
I'm still using the code above. What am I missing here?
HI Min,
Can you please share us the code snippet of how you have added the Custom date form fields, it may help us to validate further.
If possible can you please share us a simple sample.
Regards,
Ajithamarlin E
Hi
Ajithamarlin Edward,
This is the output UI:
So I just click Text Button, then right click and click properties
then change the type to date, and click ok button
then click FormFieldsonly Button, when I click the date input field,
icons are not showing:
Hi Min,
We will update details shortly.
Regards,
Suriya M.
Min, we have checked the reported issue in version(20.3.60), we couldn't reproduce it.
Please check below sample for reference:
https://stackblitz.com/edit/react-mbdf8h?file=index.js
Can you please check it and let us know if you still having problems?
Hi Surya Murugan,
After carefully investigating, I realized that I was just missing a dependency:
@syncfusion/ej2-react-calendars
Thanks for helping. Appreciate it :)
You're welcome, Ameer. We are glad to hear that your issue has been resolved now. Please get back to us if you need any other assistance.