quickjeff Posted August 24, 2018 Share Posted August 24, 2018 Hey guys I am using the front end editor for people to be able to edit a custom page they created. However, bootstrap 4 is being used as the framework and it seems to conflict with the editor. Any suggestions? Link to comment Share on other sites More sharing options...
Tom. Posted August 24, 2018 Share Posted August 24, 2018 3 hours ago, quickjeff said: Hey guys I am using the front end editor for people to be able to edit a custom page they created. However, bootstrap 4 is being used as the framework and it seems to conflict with the editor. Any suggestions? The editor should be "namespaced". Are you able to provide a screenshot of the conflict (with inspect element on the issue). 2 Link to comment Share on other sites More sharing options...
quickjeff Posted August 24, 2018 Author Share Posted August 24, 2018 14 hours ago, Tom. said: The editor should be "namespaced". Are you able to provide a screenshot of the conflict (with inspect element on the issue). Link to comment Share on other sites More sharing options...
matjazp Posted August 25, 2018 Share Posted August 25, 2018 What PW version? There have been some updates to PageFrontEdit a few months ago. It also looks like jQuery is not loaded before other scripts. PageFrontEdit doesn't play well with Jquery 3 used on the frontend. See https://github.com/processwire/processwire-issues/issues/609 and https://github.com/processwire/processwire-issues/issues/574 1 Link to comment Share on other sites More sharing options...
quickjeff Posted August 27, 2018 Author Share Posted August 27, 2018 On 8/25/2018 at 3:26 AM, matjazp said: What PW version? There have been some updates to PageFrontEdit a few months ago. It also looks like jQuery is not loaded before other scripts. PageFrontEdit doesn't play well with Jquery 3 used on the frontend. See https://github.com/processwire/processwire-issues/issues/609 and https://github.com/processwire/processwire-issues/issues/574 Using latest version of PW and loading the bootstrap 4 scripts in top and bottom. I tested both ways and it doesnt work. I think its the .slim.min.js file thats breaking things. However this is needed for the toggle drop down and other menu/navigation drop downs in Bootstrap. Link to comment Share on other sites More sharing options...
JayGee Posted October 3, 2018 Share Posted October 3, 2018 Can confirm we've run into this same issue with the latest Bootstrap, latest PW and latest jQuery. We're currently doing this to ensure latest jQuery for the public and the compatible older version for editors. <?php //Load older version of jQuery for front end editor if ($user->isLoggedin()) { echo '<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>'; } else { echo '<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>'; } ?> 2 Link to comment Share on other sites More sharing options...
zoeck Posted October 19, 2018 Share Posted October 19, 2018 On 10/3/2018 at 8:59 PM, Guy Incognito said: Can confirm we've run into this same issue with the latest Bootstrap, latest PW and latest jQuery. We're currently doing this to ensure latest jQuery for the public and the compatible older version for editors. But this is only a workaround... we need a pw fix here... ? It makes no sense to use an old version permanently. Link to comment Share on other sites More sharing options...
studioweb Posted February 8, 2020 Share Posted February 8, 2020 Having the same issues here with Jquery 3.2.1 / Bootstrap v4.0.0 on PW 3.0.148 Link to comment Share on other sites More sharing options...
antpre Posted September 13, 2020 Share Posted September 13, 2020 Problem still there. Any solution known ? Link to comment Share on other sites More sharing options...
TheMick Posted August 18, 2021 Share Posted August 18, 2021 Not really a solution, but you can instead load jquery-migrate for editors after jquery: if ($page->editable()) { echo '<script src="/path-to-js/jquery-migrate-3.3.2.min.js?NoMinify" defer></script>'; } This way you have at least the full functionality of the current jquery version for the editors, too. The same problem is discussed here. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now