adaptlearning / adapt_authoring

A server-based user interface for authoring eLearning courses using the Adapt framework.
https://www.adaptlearning.org/
GNU General Public License v3.0
515 stars 282 forks source link

integrate devtools into preview #1813

Open lc-thomasberger opened 6 years ago

lc-thomasberger commented 6 years ago

Affected Area

Course Preview

Requested Feature

Integrate some features from adapt-devtools into the preview window.

Use Case

Current Workaround

One must enable the plugin manually and make sure it is removed once the course is deployed.

taylortom commented 6 years ago

This is something that I think would work well as a plugin. Need to look into what we need to do to get this working that we can't do now

canstudios-louisem commented 6 years ago

What would this add that just installing dev tools would not?

taylortom commented 6 years ago

In my opinion: none, it just brings workflow improvements.

This being said, it'd be very nice to avoid the annoyance of having to enable/disable for each course, and to potentially add some other AT-specific features.

If we can do this as an installable plugin, then it doesn't need to be something that goes into core.

canstudios-louisem commented 6 years ago

My concern would be that preview would no longer show exactly what the course will look like. Its also worth pointing out dev tools is not an adapt_authoring extension so if we were to do this we may want to fork or move it to contrib.

lc-thomasberger commented 6 years ago

When we trigger a global event with a handle to the previewWindow, Plugin authors can hook into and inject scripts into the preview Window.

lc-thomasberger commented 6 years ago

We all agree that, preview and some kind of live editing functionality is missing in the current versions. In my opinion the devtools offer some very interesting and powerfull concepts that can improve a course authors workflow and experience. therefore I think we should think about adding some concepts from this plugin into the core.

@canstudios-louisem we can add a button that loads the plugin only when requested. So sideeffects should be rather low.