If you want to ignore my blabber and just want the solution, go to the bottom of post and read the TL;DR.
This is a really strange thing to happen. I am working on a Magento project and for some testing I had to upload some images for a product. Nothing new.
Continue reading Magento http upload error due to 401 authorization
Problem:This is a common scenario. You are using tinyMCE in admin of a site to insert a link to image. While displaying that image on frontend tinyMCE makes it relative path instead of absolute.
When setting up tinyMCE set these 2 configuration options:
relative_urls : false
remove_script_host : false
Both these options are true by default. As the name implies, “remove_script_host” removes the protocol and host part of URLs. “relative_urls” must be set to false is you want to set “remove_script_host” to false.
TinyMCE documentation for relative_urls and remove_script_host.
Hope it helps.
In this post, we will see, how your can create your own sharing icons to share links on Facebook, Twitter and LinkedIn in a simple manner. Let us start now.
Continue reading Create sharing icons for Facebook, Twitter and LinkedIn to share URLs
I am working on a project where I need to make a list of items sortable. Naturally, I used jQueryUI’s sortable component. Now it works great for elements like ul, or ol or any other html structure.
In my case the items were in a table and I had to make the tr’s sortable. Implementing the sortable gave me the desired behavior. Here is the code I used:
But while dragging the rows, the width of cells inside currently dragged row was getting decreased, making the row appear far smaller than normal size and ugly. This is what I am talking about (note row #6):
I did a quick Google search and found the following solution which works well. You will have to use the “helper” option provided by jQuery UI api. Here is it how you use it:
helper: function(e, tr)
var $originals = tr.children();
var $helper = tr.clone();
// Set helper cell sizes to match the original sizes
Source : StackOverflow