I want to use Hyphenopoly in my project.
Are there recommendations (best practices) as to where to put such external sources?
Regards,
Christian
Where to add external sources (Javascripts)
Where to add external sources (Javascripts)
I am using CMSms 2.2.19
Re: Where to add external sources (Javascripts)
If you mean the files, the assets folder is ideal - I usually make a 'js' folder inside it. If you mean the script tags, usually just before the closing <__body> tag. You might also want to look at CMSMSExt for {xtjs_add} and its related tags.
Not getting the answer you need? CMSMS support options
Re: Where to add external sources (Javascripts)
What is the advantage of this Hyphenopoly.js implementation instead of letting the browser handle hyphenation automatically with CSS like:
Code: Select all
hyphens:auto;
hyphenate-limit-chars:auto 5;
hyphenate-limit-lines:2;
-
- Forum Members
- Posts: 153
- Joined: Thu Jan 10, 2013 8:02 am
Re: Where to add external sources (Javascripts)
Hello Creopard,
You can use it with old browsers that do not support these css rules. Official sites (town halls for example) sometimes have backward compatibility requirements with very old browsers.
You can use it with old browsers that do not support these css rules. Official sites (town halls for example) sometimes have backward compatibility requirements with very old browsers.