How to Fork and Deploy a NodeBB Custom Theme to Heroku

NodeBB uses custom themes, but expects them to be installed as an npm dependency. And here we have a problem. Who wants to make a npm package for some client's one-off theme? I prefer to version the theme directly in the repo, less confusing for future developers. But only you, reader, may truly judge if this process is preferable. In for a penny, in for a pound. And so it goes.

Solving Typescript "Problems" in React: How to Argue with Typescript and Win, Even When You're Wrong

When a dev first adds typescript to a project, they often complain that it slows them down. Why install something whose only job is to complain about perfectly good software?

Typescript, like a linter and an IDE, can help you catch mistakes before you break production or solicit annoyed comments from senior devs.

Make a Wix Show-More with HTML content

Wix has a Show More tutorial, but it only allows you to replace the text of content, and does not allow you to use HTML in your Show More expanded or collapsed content.

There would be a million ways to solve this, but Wix likes to lock you down in their scripts and prevent you from modifying the DOM.

For a developer used to being able to accomplish whatever is needed, this is frustrating.

Here's the solution I came up with for a friend:

Here's the code. Read the instructions in the comments.

Add Multi-Element Wrapper Class With CKEditor in Drupal 8

The task at hand here is to allow the client to create a classed wrapper around multiple elements using CKEditor in Drupal 8.

The fundamental problem here is the CKEditor's built in "Styles" dropdown classes each <p> individually, while we need a class wrapping them.

You could probably make or install your own CKEditor plugin, but that's not what I did.

I did this with Javascript.

Subscribe to javascript