Simple Image module

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
8/7/2009 5:52:51 AM
Total Posts 183

Re: Simple Image module


I haven't checked it, but itsn't it possible to have your own css classes in the "style" dropdownlist work with that?
So you don't have to change the settings for all <p>'s, but just those from specific class? But again, I'm not sure if this is possible.


8/7/2009 7:41:28 AM
Total Posts 108

Re: Simple Image module

Well theres no reason why you couldnt just set <p> tags with a margin and padding of 0px for everything that appears within the content slots i suppose.

8/7/2009 8:54:12 AM
Total Posts 2245

Re: Simple Image module

It is possible to add your own custom styles to the Styles dropdown but that wouldn't fix the issue at hand. FCKeditor randomly adds extra <p>&#160</p> tags to end of content. You would have to then edit the content and set the style for the extra <p> element to the style you have created that removes the extra space. At this point, you might as well just remove the extra <p> element.

Setting the margin and padding to 0px for all <p> elements inside the content areas is not desireable because this would create a lot of issues with content whitespace and confuse users.

-Joe D.

8/7/2009 9:04:50 AM
Total Posts 108

Re: Simple Image module

Hey Joe,

How would you percieve it to confuse users? I thought when they hit return the editor just adds a <br/> which would create the white space between paragraphs.



8/7/2009 9:25:07 AM
Total Posts 18439

Re: Simple Image module

Using the enter key creates a <p>, using shift enter creates a br

In the grand scheme usually its desireable to have some padding or margins on p elements so we wouldn't typically remove it from all p elements.

We just don't want it to affect the layout of the image but the extra p that fckeditor wraps around the img by default is problmatic. Its not needed and it affects the layout of the img. If you remove the p that surrrounds the img using source view and you save without switching back to wysiwyg view its possible to get rid of the p, but then that becomes a user training issue. If we could find a way to fix this behavior in fckeditor it would be better all the way around, but its not an easy thing t figure out how to fix it.



You must sign in to post in the forums. This thread is closed to new posts.