Jump to content

Announcements & WYSIWYG


Pionier

Recommended Posts

If I use the WYSIWYG editor to write an announcement, it is stored in the following format:

<p><span style="font-family: 'book antiqua', palatino; font-size: small;"><span style="color: #ff0000;"><strong><span style="background-color: #888888; font-size: large;">Hallo,</span><span style="font-size: x-small;"> test. Ich bin eine Beispielnachricht.</span></strong></span></span></p>

 

But since in clientareahome.tpl (default template), the following code is:

{if $announcements}
<div class="alert-message warning">
   <p><strong>{$LANG.ourlatestnews}:</strong> <br />{$announcements.0.text|truncate:100:'...'} - <a href="announcements.php?id={$announcements.0.id}">{$LANG.more}...</a></p>
</div>
{/if}

 

This code is now displayed:

<div class="alert-message warning">
   <p><strong>neusten Nachrichten:</strong><br></p><p><span style="font-family: 'book antiqua', palatino; font-size: small;"><span announcements.php?id="17"" style="color:... - <a href=">Mehr...</span></span></p>
</div>

This happens because the "<span style"-Tag is too long. That was the error in another post -> http://forum.whmcs.com/showthread.php?t=43872

 

 

I think here there is a bug.

 

Excuse my bad English.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated