Skip to content

Refactor the embedded player code injection logic in order to not change the initial structure

Quoc Huy Nguyen Dinh requested to merge fix-spoilers into develop

When adding a video URL in the spoiler code, the current way we inject the embedded player iframe code changes the HTML structure of the original content because it's splitting the original HTML into section and wraps each section inside a DIV. I've refactor this in order to keep the original structure intact.

Prod: https://hive.blog/hive-196233/@tarazkp/spoilers-not-included

Staging: https://staging-blog.hive.io/hive-196233/@tarazkp/spoilers-not-included

Edited by Quoc Huy Nguyen Dinh

Merge request reports