You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried integrating hyphenator.js in the test book totc, but I cannot get it to work with Monocle (no problem using it in standalone simpler webpages).
I doubt it would work using the class-name thing. What you'd want to do is hook into the 'componentchange' event, triggering the hyphenator.js code to run over the newly loaded component.
Here's some example code of listening to the componentchange event and redirecting internal links: http://gist.github.com/558293 — you could adapt that to run the hyphenation routine.
Marking as closed due to inactivity. CSS3 hyphenation has increasing support (esp on iOS), and that's the Monocle recommendation. Re-open if unaddressed.
I tried integrating hyphenator.js in the test book totc, but I cannot get it to work with Monocle (no problem using it in standalone simpler webpages).
I tried loading the script in the
<head>
:And adding
class="hyphenate"
(which is what I set hyphenator.js to look for in its mergeAndPack-Tool) to either<body>
or each<div id="part…">
.Any experience/hint on integrating it into Monocle?
The text was updated successfully, but these errors were encountered: