Hack for Internet media manager
This hack works directly on the core of the media manager to change the parameter 's image alignment.
The problem: loading an image from the button at the bottom of the editor we want to align left, but we want to acentric relation to the description.
The solution: When you upload an image scripts operate on the code by creating a few additional tags for formatting. These tags are often pre-formatted with an inline style on which our css can? very little. The files "implicated" are in the folder / media / system / js and include: pop-imagemanager.js and caption.js.
The first collects the information you put in the window loading to create the image, the second creates a div with class img_caption to enter the caption below the picture.
removed from the line 107 to line 109 of file-popup imagemanager.js remove the parameters for the alignment.
0 comments:
Post a Comment