We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36677
    • 2 Posts
    Need serious help with this issue.
    I am using shadowbox to view my pictures and the new TinyMCE cleans the code. Se below;

    Right version

    <h3><a title="exclusive manor wing" rel="Shadowbox[8];" href="assets/images/8/wing1.jpg"><img style="float: right;" title="exclusive manor wing in Sweden" src="assets/images/8/wing1.jpg" alt="livingroom" width="320" height="200" /></a></h3>
    <h3><a title="exclusive bedrooms in the manorwing" rel="Shadowbox[8];" href="assets/images/8/bedroom.jpg"></a></h3>
    <h3><a title="exclusive livingroom in the wing" rel="Shadowbox[8];" href="assets/images/8/livingroom.jpg"></a></h3>
    <h3><a title="newly buildt 2010" rel="Shadowbox[8];" href="assets/images/8/bmanor1.jpg"></a></h3>
    <h3><a title="12 bathrooms in the wing" rel="Shadowbox[8];" href="assets/images/8/bathroom.jpg"></a></h3>
    <h3><a title="outside next to the lake" rel="Shadowbox[8];" href="assets/images/8/wing2.jpg"></a></h3>

    and when I put the exact code in the tinymce All the images links disapear.

    <h3><a title="exclusive manor wing" href="assets/images/8/wing1.jpg" rel="Shadowbox[8];"><img style="float: right;" title="exclusive manor wing in Sweden" src="assets/images/8/wing1.jpg" alt="livingroom" width="320" height="200" /></a></h3>
    <h3> </h3>
    <h3> </h3>
    <h3> </h3>
    <h3> </h3>
    <h3> </h3>

    Please help me

    regards
    Rickard
      • 32316
      • 387 Posts
      whistlemaker Reply #2, 15 years ago
      If I copy your code with Tiny turned off and then turn it on it does just as you say

      But if I put something between the anchor tags - say:
      <h3><a href="assets/images/8/wing2.jpg">My link text</a></h3>
      rather than nothing -
      <h3><a href="assets/images/8/wing2.jpg"></a></h3>
      (as you posted above, which will display nothing of course) then Tiny leaves it alone.

      It seems as if Tiny sees that there is effect no link created and so removes the non-functional code - of course you were probably just entering the links and going to get back to adding the text or image for the links...
        • 36677
        • 2 Posts
        Hi Whistlemaker!
        Thanks for your reply. I will elaborate a bit on the topic. You are right that if you add text inbetween >my link text< it will work. But for those who uses shadowbox and lightbox as a tool to show the slideshow only the first picture will appear on the webpage describes as
        <h3><a href="assets/images/8/wing1.jpg"><img src="assets/images/8/wing1.jpg" width="320" height="200" /></a></h3>
        Once you have opened the picture above the following photos will appear as normal.
        Today I have two web pages both on revolution (2.08 and the newest realise) I am now using tinymce 4.0.1 rc2 and on the newer revo 4.2.3pl and it work perfectly with the following links. So It must be a bugg in the newer Tinymce. Sould I make a bugg report on this or can I configure it to work?

        Thank for your help
        Rickard
          • 32316
          • 387 Posts
          whistlemaker Reply #4, 15 years ago
          I don't know if you can configure Tinymce to make it work - I would expect that it is possible, but personally I have not usually persevered long enough to get Tinymce to do what I want it to.

          I would make a bug report ...
          <soapbox>
          I think that if one goes to the effort of typing in particular code that the editor should not just erase it with no warning! Nor should it add tags (like <p> </p> around modx tags) for no reason. This kind of 'extra' functionality should be optional - and one should have to explicitly have to ask it to 'clean up the code'. It is OK for it to do 'its thing' while one is entering text, that is what it is all about, it just needs to not touch code that has been edited in html editor - that is to say just toggling the 'Toggle Editor' check box should NOT edit the page

          Perhaps it is significant that RTE I am currently using to type this is NOT TinyMCE.

          Perhaps it is time for a different default RTE for MODX.
          </soapbox>