Open inline link in modal/colorbox I have the colorbox module installed so I assume there's a way to do this with it, but I've had no success. Pretty much what I'd like to do within the WYSIWYG editor is have a link to an external website open up in a colorbox modal. I have forms hosted on a third party website, so instead of having users leave my site, I'd like the ability to have them just see that external form in the colorbox.

How do I achieve such a thing? I've tried adding the colorbox-node class to no success and also tried creating my own class and then in a custom js file have the following code:

 (function($){
    $(".custom-class").colorbox({iframe:true, width:"80%", height:"80%"});
 }(jQuery));


The above code fails when I inspect it with the following error:
TypeError: $(...).colorbox is not a function.

I'm also using a bootstrap sub-theme but I don't think the modal component would be of any use, would it?
You just need to make sure the library is added to the request. 

For example, to include the library on every page:

function THEME_page_attachments_alter(array &amp;$attachments) {
  $attachments['#attached']['library'][] = 'colorbox/colorbox';
}