Cannot insert example in questions form

  • Mateusz
  • Mateusz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago #1 by Mateusz
Hi everyone,
I am trying to insert an example during creation of a question, but it doesn't work :(
(Joomla! ver. 3.9.15, SimpleQuiz ver. 1.8.625)

Getting error message in the Chrome console:
Code:
Uncaught TypeError: Cannot read property 'setValue' of undefined at insertExample (index.php:347) at HTMLAnchorElement.onclick (index.php:533)

Any idea how to fix it?

Regards,
Mateusz

Please Log in or Create an account to join the conversation.

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
5 years 11 months ago #2 by Christopher Mavros
Replied by Christopher Mavros on topic Cannot insert example in questions form
Hello Mateusz and thank you for posting on our forum!

Can you please tell me which editor are you using?

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

  • Mateusz
  • Mateusz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago #3 by Mateusz
Replied by Mateusz on topic Cannot insert example in questions form
Hello again,

I am using JCE Pro ver. 2.8.9

Please Log in or Create an account to join the conversation.

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
5 years 11 months ago #4 by Christopher Mavros
Replied by Christopher Mavros on topic Cannot insert example in questions form
I believe that this is something that JCE is not implementing correctly.
SimpleQuiz has the following line:
Code:
Joomla.editors.instances["question_text"].setValue(questionText);

Normally, that should work with all editors, or so I remember.
Anyway, I have checked it now and you are correct, it is not working.
I fixed it and released the fix so that you may update it and get it to work.
Thank you for posting this!!!

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

  • Mateusz
  • Mateusz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 11 months ago #5 by Mateusz
Replied by Mateusz on topic Cannot insert example in questions form
Happy to hear that :)

Thank you for help.

Please Log in or Create an account to join the conversation.

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
5 years 11 months ago #6 by Christopher Mavros
Replied by Christopher Mavros on topic Cannot insert example in questions form
Thank you too!

Please take a moment, if you wish, to leave a review for SimpleQuiz on the JED:
https://extensions.joomla.org/extension/simplequiz/
It really helps!

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

Moderators: Christopher Mavros