feature proposal: Add javascript code panel on paged.js export component
Right now, when exporting paged.js, we have the option to override css and changes the look and feel of the whole book (which is perfect). But we also need to modify the content. Some example: replace quote with smart quotes, clean line breaks in links, clean breaks in titles, etc. — things you can't do with css only.
This would allow us to keep the content in Editoria to update the pdf, without having to download the book to make changes locally. With hooks, this is pretty easy to do with paged.js using hooks. Technically speaking, it would be the same that edit and update the css file
As some of the options depends on the languages and the style chosen by the publisher (which could also be per book), we need to run specific javascript on each export. The simplest way to do that would be to offer the same kind of functionnality that the css editor pane is offering, but for javascript.
This could look like this (with always the possibility to resize each of the panes).
(the screenshot comes from codepen).
With that, we should have all the control we need inside the app to generate pdf without the need of putting the content out of editoria for manual work.