I was working on a migration of an existing site to SharePoint and when pasting the source code of the pages to the SharePoint RichText fields in the edit mode of the page, I tried to copy the HTML into the editor but the inline javascript code was completely removed.
How do I address it?
I have added 4 RichTextBoxes where I have put the HTML of an existing page and it displays correctly. If I use the whole definition in one of the textboxes, the other textboxes cannot use it as out of scope.