fix: detect editor change to enable plyr on newly added videos

This commit is contained in:
Jannat Patel
2025-04-25 11:18:19 +05:30
parent 66f28ef7a6
commit 63319d32e8
4 changed files with 40 additions and 7 deletions

View File

@@ -1313,6 +1313,9 @@ def get_lesson(course, chapter, lesson):
else:
progress = get_progress(course, lesson_details.name)
lesson_details.chapter_title = frappe.db.get_value(
"Course Chapter", chapter_name, "title"
)
lesson_details.rendered_content = render_html(lesson_details)
neighbours = get_neighbour_lesson(course, chapter, lesson)
lesson_details.next = neighbours["next"]