Oh you are going to run into some bumps implementing a third-party editor into toddle as things are right now
To answer your question directly, for header scriopts you simply add them in the "external resources" section of a page
Click on the page path on the top right to see those options
And then bring in the body script either via a JS module or custom action
Now, the issue right now is that toddle currently has an opinionated CSS 'reset' stylesheet which messes with rich text editors
The only way to circumvent this at the moment is to implement the editor as a web component