Hi,
I have defined a custom widget for the editing the built in HTML type question and I would like for it to show up as a modal or a popup on the screen (like the default value popup for questions). Is there some way to achieve this?
I have tried
CodeSerializer.findProperty("html", "html").type = "value"
however it doesn't seem to have any effect. I suspect this is because I am registering the custom editor with a getJSON that is overriding the type set in the above fragment.
CodegetJSON: function (obj, prop, options) {
if (obj instanceof Question) {
return {
type: "richtext",
editorMode: obj.getPropertyValue("editorMode") || "nocode",
enableToggle: true,
maxHeight: "calc(75vh - 1em - 8em)",
};
}
},
Could you please help me out with this.
Thanks a lot!
Hello Suhrid,
You can register a custom editor which would appear within a Property Grid: as it's shown in this demo. Will this option work for you?
Also, to help me consider the best option, please specify your JavaScript development platform.
Thanks
Hi,
While this does add a custom property, It'd be great if we could arrange for the property editor to pop up in a dialog box. (like it does for default value and some other properties currently).
I am currently building on a Webpack based node setup using SurveyJS and React.
Thanks
Regards
Suhrid Mulay