sebhildebrandt / reveal.js-tagcloud-plugin

Simple Tag-Cloud Plugin for reveal.js
MIT License
44 stars 20 forks source link

How to style tagcloud ? -> Have to modify the code. #11

Open Welsh44 opened 5 years ago

Welsh44 commented 5 years ago

Hello

I don't have a development environnement. So I can't make a pull request. My problem is to style tagcloud. My organisation made some templates on RevalJS. When i add th plugin I can't style as I want to because of "!important" in the CSS files...that I can't change.

So in the plugin code just change // Replace the inner html of the slide with the formatted tags cloud.innerHTML = formatTags(cloud.innerHTML) ; by // Replace the inner html of the slide with the formatted tags cloud.innerHTML = "<tagcloud>" + formatTags(cloud.innerHTML) + "</tagcloud>";

Now you can style tagcloud as you can style section in a CSS file.