0
Welcome Guest! Login
0 items Join Now

JCE editor and responsive layout

    • Houston's Avatar
    • Houston
    • Elite Rocketeer
    • Posts: 1077
    • Thanks: 2

    JCE editor and responsive layout

    Posted 12 years 5 months ago
    • I have a client that is going to end up putting quite a bit of articles on her site and she will be most definately be putting images in those articles. My concern is that these images may break the responsive layout unless the rt-image class is wrapped around each image she uploads.

      I guess this could be more of a question for the JCE forum but I thought someone here might have the answer to this. Is there some way to get JCE to do this automatically for each image or is their some other solution to this?

      Many thanks,
      Houston
    • Houston Brown - www.splitlightdesigns.com
      Apache Version = 2.2.2 / PHP Version = 5.2.17 or 5.3.15 (dual)
      mySQL Version = 5.5.21
      Joomla Version = 2.5.8 / Web Servers OS Version = CentOS 6
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: JCE editor and responsive layout

    Posted 12 years 5 months ago
    • You can try to edit JCE default profile, switch to "Plugins Parameters" tab, select "Image manager" plugin on the left side and add "rt-image" class in "Classes" parameter on the right side.

      That should put rt-image class to all images that are added with JCE image manager by default

      But yes, you really should ask 3rd party developers for a help with 3rd party extensions. We really can't do their job no matter how good or fast we are in replying 8)
    • Check my services at: Mihha-Vision
    • Houston's Avatar
    • Houston
    • Elite Rocketeer
    • Posts: 1077
    • Thanks: 2

    Re: JCE editor and responsive layout

    Posted 12 years 5 months ago
    • But yes, you really should ask 3rd party developers for a help with 3rd party extensions. We really can't do their job no matter how good or fast we are in replying 8)

      Which is the very reason I ask here. :) A blessing for me and somewhat of a curse for you guys that are so knowledgeable.

      Always appreciate you guys going the extra mile.

      Many thanks,
      Houston
    • Houston Brown - www.splitlightdesigns.com
      Apache Version = 2.2.2 / PHP Version = 5.2.17 or 5.3.15 (dual)
      mySQL Version = 5.5.21
      Joomla Version = 2.5.8 / Web Servers OS Version = CentOS 6
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: JCE editor and responsive layout

    Posted 12 years 5 months ago
    • Yes, but you see, those developers are not paying us to do their job, right? The more time we spend on providing 3rd party extension support, the less time we have for support for real problems with our templates and extensions. You wouldn't want your template and RT extensions issue to be put aside so we can support other developers and 3rd party extensions?
    • Check my services at: Mihha-Vision
    • Houston's Avatar
    • Houston
    • Elite Rocketeer
    • Posts: 1077
    • Thanks: 2

    Re: JCE editor and responsive layout

    Posted 12 years 5 months ago
    • I get it. I was simply complimenting you on your skill set and tempting to add a little humor to it. I will never ask for help with 3rd party plugins again here.
    • Houston Brown - www.splitlightdesigns.com
      Apache Version = 2.2.2 / PHP Version = 5.2.17 or 5.3.15 (dual)
      mySQL Version = 5.5.21
      Joomla Version = 2.5.8 / Web Servers OS Version = CentOS 6
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: JCE editor and responsive layout

    Posted 12 years 5 months ago
    • Thank you for understanding and for a compliment :cheesy:
    • Check my services at: Mihha-Vision
    • Houston's Avatar
    • Houston
    • Elite Rocketeer
    • Posts: 1077
    • Thanks: 2

    Re: JCE editor and responsive layout

    Posted 12 years 5 months ago
    • You can try to edit JCE default profile, switch to "Plugins Parameters" tab, select "Image manager" plugin on the left side and add "rt-image" class in "Classes" parameter on the right side.

      That should put rt-image class to all images that are added with JCE image manager by default

      Just for the record in case anyone else reads this thread, this solution just adds a class of rt-image to the IMG tag. In order for the rt-image css to resize the image for responsive layout the image itself needs to be wrapped in a div with a class of rt-image. adding a class of rt-image to the image itself does nothing.

      So JCE ends up producing this code:
      <img style="margin-top: 16px; margin-right: 20px; float: left;" class="rt-image" alt="colored water bottles" src="article-images/colored_water_bottles.jpg" height="300" width="322" />

      What you need it to do is produce this:
      <div class="rt-image">
      <img style="margin-top: 16px; margin-right: 20px; float: left;"  alt="colored water bottles" src="article-images/colored_water_bottles.jpg" height="300" width="322" />
      </div>
    • Houston Brown - www.splitlightdesigns.com
      Apache Version = 2.2.2 / PHP Version = 5.2.17 or 5.3.15 (dual)
      mySQL Version = 5.5.21
      Joomla Version = 2.5.8 / Web Servers OS Version = CentOS 6
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: JCE editor and responsive layout

    Posted 12 years 5 months ago
    • That is exactly why I told you that this kind of questions are better to be addressed on 3rd party developer's support sites and not here :oops:
    • Check my services at: Mihha-Vision
    • Houston's Avatar
    • Houston
    • Elite Rocketeer
    • Posts: 1077
    • Thanks: 2

    Re: JCE editor and responsive layout

    Posted 12 years 5 months ago
    • Yes you are correct of course. In the event that this thread does not get deleted I just wanted to let the person who might come across this thread not to think this was the answer, that is all.
    • Houston Brown - www.splitlightdesigns.com
      Apache Version = 2.2.2 / PHP Version = 5.2.17 or 5.3.15 (dual)
      mySQL Version = 5.5.21
      Joomla Version = 2.5.8 / Web Servers OS Version = CentOS 6
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: JCE editor and responsive layout

    Posted 12 years 5 months ago
    • There is no reason to delete this thread. We don't delete threads no matter what 8)
    • Check my services at: Mihha-Vision

Time to create page: 0.080 seconds