Skip to content

Category: Questions

getting errolist when using htmx and tinymce

Im trying to implement post request with htmx and for rich text editor using tinymce. my form : The error I get : it works just ok when I used the traditional post request with TinyMCE. when I used htmx without TinyMCE its work just fine too. it just when I combine htmx and TinyMCE I get the error. my

Opening mulitple taps with js in a new window

I have a bunch of links I need to open at once in a new window. I am aware that you can open links in a new window (without the toolbar) one by one, but I need a fully functional browser window with a toolbar and all links open. Not like this: But more like this: (It’s for a chrome

mongoose.connect() is undefined

I’m trying to connect to my MongoDB using Mongoose and it gives me the following error. I get this Error Answer You should change 2 things: Change { mongoose } with mongoose Remove useNewUrlParser option. New version of Mongoose does not accept it as option and it will throw an error.

How can I conditionally add several values to a type?

I have this type: I don’t want those last two to be in the type when a condition is met. How can I conditionally add those last two values only when the condition is met? This was my approach (but it’s not working): Answer You need to check if const’s type extends ‘production’: P…