Plugin Directory

Changeset 3154279


Ignore:
Timestamp:
09/19/2024 06:04:01 AM (16 months ago)
Author:
devsoftbaltic
Message:

work for the https://github.com/surveyjs/surveyjs-wordpress/issues/53

File:
1 edited

Legend:

Unmodified
Added
Removed
  • surveyjs/trunk/views/editor.php

    r3075493 r3154279  
    158158                            });
    159159                        });
     160                        editor.onSurveyInstanceCreated.add(function(creatot, options) {
     161                            const reason = options.reason;
     162                            const survey = options.survey;
     163                            if (reason === "test" || reason === "theme") {
     164                                survey.getAllQuestions().forEach((q)=>{q.storeDataAsText = true});
     165                            }
     166                        })
    160167                        const creator = editor;
    161168                        var json = '<?php echo htmlspecialchars_decode($json); ?>';
Note: See TracChangeset for help on using the changeset viewer.