Question T94
Visible to All Users

how to customize Editor properties

created 7 years ago

Dear Ladies and Gentlemen,

we are using the surveyjs-editor component in our React application to create surveys. Now we want to add custom fields to the property and also insert properties by hotkey with the keyboard.
So we created an overlay where you can select your data to add to the survey. After that you move to the property where to add this as shortkey via keyboard shortcut, e.g. CTRL+E. In the screenshot you can see an example:

The attribute label should be added to the name property of the question. We tried to get elements with   but we only get elements from the questions area not the right side from the editor. We would be very happy if you could help us out a little.

We use a React+Redux with a REST-Backend. We will store the generated survey-json in our database and replace the shortcut values with real data, e.g. Label with the label of an object.

Best Regards
Richard Geike

________________________________________________________________
HiScout GmbH
Bouchéstraße 12 // 12435 Berlin // Germany
T: +49 30 3300888-0 // F: +49 30 3300888-99
E: // I:


(PITS) // 12. - 13. September 2017 // Berlin
// 28. - 29. September 2017 // Hamburg
// 10. - 12. Oktober 2017 // Nürnberg

________________________________________________________________
****
HiScout GRC Suite // Unified Governance, Risk & Compliance Management
Mindestinformationen im geschäftlichen E-Mail-Verkehr nach §37a HGB/Legal information:
Sitz der Gesellschaft/Registered office: Berlin
Handelsregistereintrag/Commercial register: Amtsgericht Berlin Charlottenburg - HRB 119470 B
Geschäftsführer/Managing Director: Michael Langhoff
Bitte denken Sie über Ihre Verantwortung gegenüber der Umwelt nach, bevor Sie diese E-Mail ausdrucken./Please consider the environment before printing this email

Show previous comments (6)

    Hello Andrew,

    has this feature been implemented? It would be wonderful to be able to upgrade to the newest version without having to migrate our workaround.

    Kind regards,
    Erik Tuneström

      Hello Erik,

      Unfortunately this feature is not implemented yet. We've chaned it priority and started to work on it right now.
      I'll inform you about the progress immediately in this thread.

      Thanks, Serge
      SurveyJS Team

        Hello Erik,

        I've implemented the onPropertyEditorKeyDown event via this commit - https://github.com/surveyjs/editor/commit/9dd4b75258b7334522e7c8c68082eb1b5d77eb60
        Could you check the code and tell me whether it fit your tasks?

        Thanks, Serge
        SurveyJS Team