How is the Edit Settings page on F2F block currently being populated?

How is the Edit Settings page on F2F block currently being populated?

by Sabiha Shaik -
Number of replies: 0

Hello,

Currently the F2F notifications coming out of the plugin are plain text. As  we would like to customize this to include media such as images and colors, we are currently looking into modifying the code base to include the Moodle Atto Editor. 

We have replaced the plain 'text area' in the code base with a rich text editor that allows you to add html formatted messages for the confirmation.

At the current stage, HTML Messages can be created, stored in the DB next to the appropriate F2F instance and values can be updated for the confirmation message. 

On testing the messages are also sent out as rich text to the users. We are currently facing an issue where when an user presses  "Edit Settings" of the block, the section with Confirmation message does not show the latest updated message (although it is stored in the DB), instead it shows the default text that the editor has been initialized with. 

We are trying to locate the function that populates the "Edit Settings" Page of the block.  

So we could check why the Confirmation message field (which is now of type editor) is not able to fetch and populate with the updated message which is available in the DB.

Would appreciate any help in this direction. 


image

Average of ratings: -