mario-education 2.4.304-layout → 2.4.306-layout
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -10
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -10
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -15525,12 +15525,14 @@ var QuestionDetail = function QuestionDetail() {
|
|
|
15525
15525
|
tinyMCEKey = _useQuestionDetail.tinyMCEKey,
|
|
15526
15526
|
listLanguage = _useQuestionDetail.listLanguage,
|
|
15527
15527
|
activeLanguage = _useQuestionDetail.activeLanguage,
|
|
15528
|
-
onChangeLanguage = _useQuestionDetail.onChangeLanguage
|
|
15529
|
-
setEditorRef = _useQuestionDetail.setEditorRef;
|
|
15528
|
+
onChangeLanguage = _useQuestionDetail.onChangeLanguage;
|
|
15530
15529
|
|
|
15531
15530
|
var header = !!id ? t(EDIT_QUESTION_HEADER) : t(CREATE_QUESTION_HEADER);
|
|
15532
15531
|
var confirmText = !!id ? t("update") : t("create");
|
|
15533
15532
|
var additionalFields = ["fromLabel", "toLabel", "numberOfStars"];
|
|
15533
|
+
console.log({
|
|
15534
|
+
textLanguage: questionDetail.text
|
|
15535
|
+
});
|
|
15534
15536
|
return React__default.createElement(React__default.Fragment, null, !!id && React__default.createElement(Nav, {
|
|
15535
15537
|
tabs: true,
|
|
15536
15538
|
className: "mb-3"
|
|
@@ -15642,17 +15644,11 @@ var QuestionDetail = function QuestionDetail() {
|
|
|
15642
15644
|
}, React__default.createElement(RequiredLabel, {
|
|
15643
15645
|
text: t("question_text")
|
|
15644
15646
|
}), (questionDetail.text || !id) && !!tinyMCEKey && React__default.createElement(Editor, {
|
|
15645
|
-
ref: function ref(node) {
|
|
15646
|
-
return setEditorRef(node);
|
|
15647
|
-
},
|
|
15648
15647
|
apiKey: tinyMCEKey,
|
|
15649
15648
|
value: questionDetail.text,
|
|
15650
|
-
init:
|
|
15651
|
-
paste_preprocess: function paste_preprocess(_plugin, args) {
|
|
15652
|
-
args.content = args.content.replace(/<\/?(?!b\b|p\b)[^>]+>/g, "");
|
|
15653
|
-
}
|
|
15654
|
-
}),
|
|
15649
|
+
init: editorConfig.question,
|
|
15655
15650
|
onEditorChange: function onEditorChange(content) {
|
|
15651
|
+
console.log(content);
|
|
15656
15652
|
setFieldValue("text", content);
|
|
15657
15653
|
setEditedTrue();
|
|
15658
15654
|
}
|