3 ms·
The viewer is open source[0], so yeah you can embed it in an iframe (that's what the editor does), and just `postMessage` the parsed markwhen and some additiona
by koch 3y ago
The viewer is open source[0], so yeah you can embed it in an iframe (that's what the editor does), and just `postMessage` the parsed markwhen and some additional state to it. The structure of the posted data is here[1]. I'm happy to help, rob@markwhen.com or I'm in the markwhen discord[2]
[0] https://github.com/mark-when/timeline https://github.com/mark-when/timeline
[1] https://github.com/mark-when/view-client/blob/9eddc1a2cf79b4e39ff3d20dbf9c81c07eb93a89/src/index.ts#L32 https://github.com/mark-when/view-client/blob/9eddc1a2cf79b4...
[2] https://discord.gg/3rTpUD94ac https://discord.gg/3rTpUD94ac
- mholt 3y agoPerfect, thanks!