mvanderhoff Posted May 14, 2012 Share Posted May 14, 2012 I installed CKEditor and noticed it was adding <p>'s all over my product descriptions when I went into Source. I would rather have it do <br> or <br /> instead. I found code here: http://stackoverflow.com/questions/1977791/turn-off-enclosing-p-tags-in-ckeditor-3-0 And placed the code <script type="text/javascript" src="/js/ckeditor/ckeditor.js"></script> <script type="text/javascript" src="/js/ckeditor/adapters/jquery.js"></script> <script type="text/javascript"> $(function() { $('#your_textarea').ckeditor({ toolbar: 'Full', enterMode : CKEDITOR.ENTER_BR, shiftEnterMode: CKEDITOR.ENTER_BR }); }); </script> Within the Admin - Includes - Template Top PHP file. Any other suggestions to rectify this problem? Quote Link to comment Share on other sites More sharing options...
mvanderhoff Posted July 24, 2013 Author Share Posted July 24, 2013 Bump still have this issue Quote Link to comment Share on other sites More sharing options...
ozEworks Posted July 24, 2013 Share Posted July 24, 2013 A carriage return (Enter key) is a new paragraph <p>. A line break (Shift Enter) is a <br>. So what are you saying is happening? Quote Link to comment Share on other sites More sharing options...
♥joli1811 Posted July 25, 2013 Share Posted July 25, 2013 Hi Matt, If I understand correctly ... You should actually be doing your changes inside ckeditor files and not the oscommerce files . The ckdeitor/config.js although if you read down the link you sent I think I would prefer doing this in the ckeditor.js a bit hard to find you would need to do a search.ckeditor.js line #91 Regards Joli Quote To improve is to change; to be perfect is to change often. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.