This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Here's an example of using EpicEditor with something like Twitter Bootstrap tabs. | |
// Thing is that EpicEditor doesn't calculate its dimensions properly when it is nested in a hidden container. | |
// So, we just need to call 'reflow' method of the EpicEditor. Here is the simple solution: | |
// Tab link that's clicked | |
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { | |
// EpicEditor instance recalculates its dimensions. | |
editor.reflow(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$languages = array('nl','fr'); | |
$locale = Request::segment(1); | |
if(in_array($locale, $languages)) | |
{ | |
\App::setLocale($locale); | |
} | |
else | |
{ | |
$locale = null; |
NewerOlder