backdrop-contrib / highlightjs_wysiwyg

Adds a shortcode for using HighlightJS in the WYSIWYG editor.
GNU General Public License v2.0
0 stars 1 forks source link

Add Configuration Options Admin Section #1

Open alexfinnarn opened 6 years ago

alexfinnarn commented 6 years ago

Users can't add any more languages than what is set in the code at this point. A config page should be made that allows users to add/remove languages from the select list as well as point to a CDN version of the highlight.js library.

alexfinnarn commented 6 years ago

I started something in feature/1 branch, but the language settings need to be converted from objects to an array for the select list to work.

Then, a CDN option should be added or just a checkbox for adding the CDN pointing to something like https://cdnjs.com/libraries/highlight.js/.

At the end of the day, the current options of syntax highlighting cover most Backdrop developer needs and adding the CDN option can easily break when the library is hosted a different way.