djplaner / Content-Interface-Tweak

Improves both the task of creating content for Blackboard Learn, and reading that content.
https://djplaner.github.io/Content-Interface-Tweak/
GNU General Public License v3.0
0 stars 0 forks source link

Integrate the "cards" with new content interface #14

Closed djplaner closed 3 years ago

djplaner commented 4 years ago

Using models and views.

djplaner commented 4 years ago

how does contentWithCards work?

contentInterface method has a handleBlackboardCards method

handleBlackboardCards

djplaner commented 4 years ago

How to implement

  1. ciModel - looks for card lists/divs in the ContentInterface - does this create listOfCardBunches?? no
  2. content.js - tests if there are any and creates a cardContentModel which accepts the card elemetns and geneats listOfCardBunches
  3. content.js - creates a ciCardContentView responsible for replace card content
    1. content.js - creates a ciTweakView responsible for updating the tweak

There would (eventually) be some sort of inheritance relationship with the Card Interface views and models

Model

djplaner commented 3 years ago

Leaving this aside. Cards now in Content.js. Need to move to webpack or some related approach before going down this route.