I've only recently started using OJS, and I seem to have a problem when I create hyperlinks with tinymce in an issue's text body. The version of ojs i'm using is 2.3.7 (a fresh install), and any hyperlink I create, appears dead later, when I'm viewing the current issue on http://siteroot/index.php/journal/issue/current.
I checked that all the hyperlinks are stored properly in the database in the issue_settings table (they are not malformed), which means tinymce hasn't got a
problem. To be totally sure about this, I took the tinymce plugin from an older version of ojs (that worked correctly), and installed
it to the latest version (2.3.7), but the problem persists. Even when i disabled the tinymce and created the issue's hyperlinks by hand,
they still appeared dead later.
After a bit of delving into the ojs code, i found out that the ojsroot/templates/issue/view.tpl template file, actually strips off
the href attribute when it comes to displaying the links, with the use of strip_unsafe_html. So I changed the following line
- Code: Select all
<div id="issueDescription">{$issue->getLocalizedDescription()|strip_unsafe_html|nl2br}</div>
to the one below
- Code: Select all
<div id="issueDescription">{$issue->getLocalizedDescription()|nl2br}</div>
Hyperlinks are now restored, but I don't know whether that solution is the optimal or not (probably it isn't).
Has anyone else faced the same problem?
Any syggestions would be greatly appreciated.
evan
