Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Embedding C++ Code Editor Widget in Course
- This topic has 14 replies, 3 voices, and was last updated 3 years, 11 months ago by Diana.
-
AuthorPosts
-
May 15, 2020 at 1:41 am #259583mightyjovaSpectatorI'm trying to create a Course to teach C++. Using a widget from Sphere Engine to generate a simple C++ Code Editor. It needs an HTML block to work. Success in a Post page using Custom HTML block. However, I can get it to work in Course as there isn't a custom HTML in Unit Course Page. IFrame shortcode but no HTML to house the widget. Thoughts?May 15, 2020 at 6:41 am #259647MrVibeKeymastera. Disable Ajax course loading in WP admin - LMS - Settings - Disable unit ajax b. Could be a CORS issue restricted by the browser, if a. does not work, share site credentials here.May 21, 2020 at 12:40 am #261332mightyjovaSpectatorThis reply has been marked as private.May 21, 2020 at 11:13 am #261531MrVibeKeymasterThis is definitely possible. In fact many of our users are using sphere engine. You can just embed it in any unit and use itMay 21, 2020 at 9:02 pm #261675mightyjovaSpectatorCan you give me tutorial on how? I tried, couldn't get a custom HTML block (like I did in Post). I showed it to the SphereEngine folks and they gave me the message above. Would the <span style="color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;">embedded </span>ACE Editor work better? I'm not a developer, if I need to turn this over to one let me know. Thanks!May 22, 2020 at 12:49 pm #261890DianaParticipantDear User, You forgot to share site URLMay 22, 2020 at 3:49 pm #261953mightyjovaSpectatorThis reply has been marked as private.May 23, 2020 at 5:48 pm #262232DianaParticipantThis reply has been marked as private.May 25, 2020 at 12:53 am #262360mightyjovaSpectatorThis reply has been marked as private.May 25, 2020 at 1:43 pm #262618MrVibeKeymasterI see that you have not embedded the sphere engine in any unit. Can you add it to a unit and share it with me.May 25, 2020 at 6:48 pm #262697mightyjovaSpectatorOkay, Sorry if I'm not being clear. The Sphere Engine Widget is implemented this way. The question is how this is done in a Unit? This is the installation process from their site (SphereEngine): They Write:
Integrate the widget either as a standalone page or using the JavaScript SDK. Find out more in our documentation.
JavaScript SDK
Place the following snippet on your website, directly after thetag. Do it only once, regardless of how many widgets you want to put on the site.
<script> SEC_HTTPS = true; SEC_BASE = "compilers.widgets.sphere-engine.com"; (function(d, s, id){ SEC = window.SEC || (window.SEC = []); var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = (SEC_HTTPS ? "https" : "http") + "://" + SEC_BASE + "/static/sdk/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, "script", "sphere-engine-compilers-jssdk")); </script>
Place the following snippet on your website where you want the widget to appear. You can place more than one widget on your website.
<div class="sec-widget" data-widget="a905d0f37c2cea0f7714734edab48c0c"></div>
May 26, 2020 at 2:59 pm #262983MrVibeKeymasterchecking now. p.s : This topic is not covered in item support policy as this is regarding a third party software. Ideally you should consult the third party vendor to help you out on this.May 27, 2020 at 6:36 am #263124MrVibeKeymasterCan you just post this embed code in the TEXT/HTML section of the unit content editor ? and save it in TEXT mode only.May 28, 2020 at 8:58 am #263634mightyjovaSpectatorOkay,I did engage the third party. I included their notes above. MANY TIMES. I have given you their feedback throughout this engagement.
I've run out of time. I've lost the trial period for using the software. As I have less than a week before I have to provide these courses. I'll implement another solution outside of the LMS. You can close the thread.
May 29, 2020 at 5:55 am #263935DianaParticipantOkay so closing this thread -
AuthorPosts
- The topic ‘Embedding C++ Code Editor Widget in Course’ is closed to new replies.