CategoryJavascript

Fix Bootstrap 3 and Prototype.js Conflict

When using Bootstrap and Prototype.js, certain Bootstrap features break as a result of jQuery triggering events with the same names as Prototype events.

Continue reading

Redactor: Add a Code Button

Redactor is a minimalistic, lightweight WYSIWYG editor with great features and fantastic plugins.

We use osTicket for our help desk and it has Redactor version 9.2.4 integrated which is not the latest but it works fantastically.

Due to the nature of our business, we often need to name functions, files or even give quick code to customers in our help desk while offering support and it is essential to be able to highlight these with <code> tags for formatting purposes.

Redactor doesn’t have a code button plugin available which I could find so I quickly wrote one today for version 9.2.X. It’s just a little bit of Javascript using internal methods and objects of Redactor only. Below is also code for the latest version 10 of Redactor.

Continue reading

© 2017 Contrid

Theme by Anders NorénUp ↑

Pin It on Pinterest