rajgoel / reveal.js-plugins

Plugins for reveal.js
MIT License
739 stars 248 forks source link

[chalkboard] [customcontrols] TypeError: config.controls is undefined in initCustomControls plugin.js:46 #158

Closed lechten closed 1 year ago

lechten commented 1 year ago

The README for the Chalkboard plugin instructs to include the customcontrols plugin. That leads to:

Uncaught (in promise) TypeError: config.controls is undefined  (in initCustomControls plugin.js:46)

In a previous version, customcontrols defined controls in its config, which it does not do any more since commit 5c6c8a4019e704d59ebe0364fe311632a64523e2. What is the recommended way to use the Chalkboard plugin?

rajgoel commented 1 year ago

@lechten for quick help you might want to look at the code of this presentation: https://talks.telematique.eu/cbi2022/

lechten commented 1 year ago

Many thanks!

murilo-cunha commented 1 year ago

Had a similar issue. Ended up partially reverting the commit to have

var config = Reveal.getConfig().customcontrols || {
    controls: [],
  };

Is there a better way?

for quick help you might want to look at the code of this presentation: https://talks.telematique.eu/cbi2022/

How can I find the code for the presentation?

(Also changed the font-wesome link from this to <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"/>)

rajgoel commented 1 year ago

I have modernized the demos that can be used for an example setup