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 CHANGED
@@ -15527,12 +15527,14 @@ var QuestionDetail = function QuestionDetail() {
15527
15527
  tinyMCEKey = _useQuestionDetail.tinyMCEKey,
15528
15528
  listLanguage = _useQuestionDetail.listLanguage,
15529
15529
  activeLanguage = _useQuestionDetail.activeLanguage,
15530
- onChangeLanguage = _useQuestionDetail.onChangeLanguage,
15531
- setEditorRef = _useQuestionDetail.setEditorRef;
15530
+ onChangeLanguage = _useQuestionDetail.onChangeLanguage;
15532
15531
 
15533
15532
  var header = !!id ? t(EDIT_QUESTION_HEADER) : t(CREATE_QUESTION_HEADER);
15534
15533
  var confirmText = !!id ? t("update") : t("create");
15535
15534
  var additionalFields = ["fromLabel", "toLabel", "numberOfStars"];
15535
+ console.log({
15536
+ textLanguage: questionDetail.text
15537
+ });
15536
15538
  return React__default.createElement(React__default.Fragment, null, !!id && React__default.createElement(reactstrap.Nav, {
15537
15539
  tabs: true,
15538
15540
  className: "mb-3"
@@ -15644,17 +15646,11 @@ var QuestionDetail = function QuestionDetail() {
15644
15646
  }, React__default.createElement(marioCore.RequiredLabel, {
15645
15647
  text: t("question_text")
15646
15648
  }), (questionDetail.text || !id) && !!tinyMCEKey && React__default.createElement(tinymceReact.Editor, {
15647
- ref: function ref(node) {
15648
- return setEditorRef(node);
15649
- },
15650
15649
  apiKey: tinyMCEKey,
15651
15650
  value: questionDetail.text,
15652
- init: _extends({}, marioCore.editorConfig.question, {
15653
- paste_preprocess: function paste_preprocess(_plugin, args) {
15654
- args.content = args.content.replace(/<\/?(?!b\b|p\b)[^>]+>/g, "");
15655
- }
15656
- }),
15651
+ init: marioCore.editorConfig.question,
15657
15652
  onEditorChange: function onEditorChange(content) {
15653
+ console.log(content);
15658
15654
  setFieldValue("text", content);
15659
15655
  setEditedTrue();
15660
15656
  }