Tiny keeps changing my typing

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
Andrew Prior
Forum Members
Forum Members
Posts: 231
Joined: Sun Oct 28, 2007 4:14 am
Location: Australia

Tiny keeps changing my typing

Post by Andrew Prior »

I am doing a long and boring task of typing in the following code to bring a website up to some kind of css compliance:

<div class="matt25l"> and then go the other end of the code for an image in the text and add </div>

About half the time, after I close the source code box in the monitor, it changes my typing to &quot; <div class="&quot;matt25l"> which is clearly not the same thing. A very long task is taking much longer since I am having to double check everything.

Does anyone have any idea what is happening here? I am using CMS Made Simple™ 2.2.16 “Truro”.

Andrew
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1445
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Tiny keeps changing my typing

Post by DIGI3 »

Which Tiny, TinyMCE or MicroTiny? I was sort of able to recreate it in MicroTiny, but only if I intentionally made the html invalid - like hitting apply before adding the closing div. If you can find a pattern to when it does it vs when it doesn't, then it would be easier to troubleshoot.

Personally if I was making that many html changes I'd probably turn off the wysiwyg editor while I make them. It would still be good to figure out the issue though in case it does it when making changes to the content in the future with the wysiwyg on.
Not getting the answer you need? CMSMS support options
Andrew Prior
Forum Members
Forum Members
Posts: 231
Joined: Sun Oct 28, 2007 4:14 am
Location: Australia

Re: Tiny keeps changing my typing

Post by Andrew Prior »

Hmmm.

I can get it with Tiny or TinyMCE in both my production site and on a test site which is on another server from another host.

Doesn't seem to make any difference how I put it in. If I correct it, sometimes it "takes," and sometimes it doesn't...

This is my (typical code)
<div class="matt25l"><img src="uploads/images/bikes/0-rides/robe/14-dawn.jpg" alt="14-dawn" width="800" height="600" /></div>
<p>I began this ride with the hope of completing a 1200 Audax in 100 hours or so. This is a little outside the standard 90 hours, but I'm getting old. And it's mid-winter. I met my first day target, but the cold clearly took its toll, and I needed to amend my plans.&nbsp; Day One: Tuesday was a day of mild winds. I left at 7am and took a slow climb up Norton Summit and across to Summertown, where it was still only 2 degrees at 9am. Cold was no problem due to the constant climb, but I soon added a padded jacket for the easier ride out to Dawsley and then downhill out of the range! &nbsp;I topped up my water and filled a 1 litre reserve bottle at Balhanna OTR and enjoyed a &nbsp;second-breakfast pastie at Kanmantoo. An old bloke whose car had passed me earlier, and was also having breakfast there said I had reminded him of Aesop's Hare and Tortoise by catching him up.... <a href="{cms_selflink href='a-long-loop-south-940km'}">Read on &gt;&gt;&gt;&gt;</a></p>

And this is the CSS:
.matt25l {
height: auto;
width: 25%;
margin: 8px;
float: left;
}
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1445
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Tiny keeps changing my typing

Post by DIGI3 »

Could you put the class on the image instead? Then you could do it with the wysiwyg without even going into the html. It's not a fix for Tiny, but without being able to recreate it reliably it's probably not something that can be fixed.
Not getting the answer you need? CMSMS support options
Andrew Prior
Forum Members
Forum Members
Posts: 231
Joined: Sun Oct 28, 2007 4:14 am
Location: Australia

Re: Tiny keeps changing my typing

Post by Andrew Prior »

Thank you. A very nice idea... but no joy. Can't get it to work like that. :(

For anyone interested, it seems like my best option is to
1. Go into the original content page file, or news file, using the WYSIWYG interface.
2. Remove float and %width from the image file.
3. Then go to the source code and paste in the relevant div information on one side of the image, followed by </div> in the relevant place at the other.
4. Click apply
5. Go back to the WYSIWYG interface, and then go into source to check the code. Repair if necessary.
6. Submit. Check the web display.

Seems to work, but annoying as H***. The joy of updating a site which has evolved over many years. :)

DIG13, is this worth reporting as a bug, do you think?

Andrew
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1445
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Tiny keeps changing my typing

Post by DIGI3 »

It's only worth reporting if you can figure out exact steps to repeat reliably. It could just be the very thing you're trying to fix that's causing it (invalid html) - if that's the case, we can't really solve a "it breaks when you have invalid html" issue. If you can set up some tests with clean html/content and then make it happen predictably, in a way that we can also make it happen, then we'll definitely dig in.
Not getting the answer you need? CMSMS support options
Andrew Prior
Forum Members
Forum Members
Posts: 231
Joined: Sun Oct 28, 2007 4:14 am
Location: Australia

Re: Tiny keeps changing my typing

Post by Andrew Prior »

Thanks. It is also happening on the new clean site so it may be worth my submitting something.
I will first of all do it with one of the designs that comes with the CMSMS installation phar, just in case there is something that is odd with the Portage Design from the easythemes.ca which is on the CMSMS themes page. And if I still get it, I'll try to document the process

Thank you for your feedback. Andrew
Post Reply

Return to “Layout and Design (CSS & HTML)”