0
Welcome Guest! Login
0 items Join Now

Aligning my images within Editor - TINY MCE2.0

    • Ramastr's Avatar
    • Ramastr
    • Rocketeer
    • Posts: 83
    • Thanks: 0

    Aligning my images within Editor - TINY MCE2.0

    Posted 15 years 9 months ago
    • brief
      Im having a problem aligning images with my joomla editor
      I cannot help think this has something to do with an over riding CSS command.

      what happens:
      When i left align, right align, or centralise a jpg, png, gif within the editor to allow text to clip around the image (see rubbish text example below)

      i | text
      m | text
      a | text
      g | text
      e | text

      when i save it, or apply the changes to the image in the editor the image will revert back to a top and bottom alignment

      text text text
      image
      text text text

      Things ive tried
      various graphic formats, jpg, gif and png
      using the text alignment
      using the image properties and setting left alignment with a 10 pixel horizontal space

      they all revert to no settings when i save it.

      Things that worked
      using the 'simple gallery plugin' with the {gallery}imagefolder{/gallery} command... This allowed for a left alignment.

      what im using

      joomla 1.5.12
      firefox3.0.12
      macosx
      affinity


      Does anyone know why i cannot apply any properties to my images within joomlas default editor. Thanks for your time

    • http://www.thegreenarchitect.co.uk - Residential Architecture in Newcastle upon Tyne
  • Re: Aligning my images within Editor - TINY MCE2.0

    Posted 15 years 9 months ago
    • Did you try turning off your editor and putting the code in yourself to see if it would work? That might tell you if it was the editor or not. I would also recommend getting a different editor. I've never been a big fan of the default. I use JoomlaFCK and I've used JCE in the past. Both editors seem to do a better job.
    • Ramastr's Avatar
    • Ramastr
    • Rocketeer
    • Posts: 83
    • Thanks: 0

    Re: Aligning my images within Editor - TINY MCE2.0

    Posted 15 years 9 months ago
    • Hi Mark,
      I toggled the editor, setup the HTML in dreamweaver, copied it in and the images still loose their properties such as alignment. Im not convinced reverting to FCK will work and if i remember that is involves a commercial license. I think ill stick to the defaults.

      I think like many other situations when you loose properties in the editor such as text sizes, heading font types etc, the CSS overrides the settings. Has anyone got an idea what i should try changing first?

      Bry

    • http://www.thegreenarchitect.co.uk - Residential Architecture in Newcastle upon Tyne
  • Re: Aligning my images within Editor - TINY MCE2.0

    Posted 15 years 9 months ago
    • JoomlaFCK is actually free for downloading. I've been pretty happy with it. Or JCE works well too. But I understand if you don't want to change that for now.
      Toggling the editor isn't the same as switching to no editor. In your user properties you can choose the editor to use or choose no editor. A lot of us here prefer using no editor.
      Do you have a link someone could look at to see the problem in action? I'd be willing to take a look in the backend if you'd supply a username or password. If not, I'm sure a moderator would probably be willing to do the same thing. If you'd like me to take a look, just PM me a username and password to access your site.
  • Re: Aligning my images within Editor - TINY MCE2.0

    Posted 15 years 9 months ago
  • Re: Aligning my images within Editor - TINY MCE2.0

    Posted 15 years 9 months ago
    • First, If you are using 1.5.12 the TinyMCe version should be 3.X and not 2.x

      I'm having the same issue, and I'm wondering if it's related to Joomla doing some type of filtering before sending the content to the database since, the styling is deleted from the image properties.
  • Re: Aligning my images within Editor - TINY MCE2.0

    Posted 15 years 9 months ago
    • You could go into Extensions->Plugins and find the TinyMCE plugin and see if its set to clean-up code. That may be contributing to the problem.
  • Re: Aligning my images within Editor - TINY MCE2.0

    Posted 15 years 9 months ago
  • Re: Aligning my images within Editor - TINY MCE2.0

    Posted 15 years 9 months ago
    • Well, it kind of worked. When I set Code cleanup on save to Never. It creates two styles, let say:
      <img style="border: 1px solid black; float: left; margin-right: 10px; margin-bottom: 10px;" mce_style="border: 1px solid black; float: left; margin-right: 10px; margin-bottom: 10px;" src="images/stories/tecnicos/german_gonzalez/basilico_02.jpg" mce_src="images/stories/tecnicos/german_gonzalez/basilico_02.jpg" alt="Germán González" title="Germán González">

      This causes problems with RokStories since it won't create the thumbnails for the images. It also will convert all the strong tags into b tags ...

      I suppose this is an integration issue. If I try the editor on one of the examples (at TinyMCE home page), when using bold it puts strong and doesn't create mce_style when styling the image.
  • Re: Aligning my images within Editor - TINY MCE2.0

    Posted 15 years 9 months ago
    • Now I have an additional questions. Looks like the clean code shouldn't remove style attribute from elements since it's a valid_element and the list of valid_attributes is not overwritten when creating the editor. It seems like I missing something in Joomla configuration more than in the Editor's one :(

Time to create page: 0.093 seconds