Standardní nastavení tinyMCE odstraňuje z textu entity jako  
Jak nastavit tinyMCE, aby nám tyto entity zachovával?

Nastavení je snadné  – stačí do konfiguračního souboru, nebo při inicializaci instance tinyMCE vložit následující kód povolující další entity.

Konfigurační soubor může pak vypadat nějak takto:

tinyMCE.init({
   ...
   entities : "160,nbsp,38,amp,34,quot,162,cent,8364,euro,163,pound,165,yen,169,copy,174,reg,8482,trade,8240,permil,60,lt,62,gt,8804,le,8805,ge,176,deg,8722,minus",
   ...
});

Po uložení by jste měli mít možnost ukládat pevné mezery.

Další informace můžete nalézt na stránkách tinyMCE.

Tagged with:
 
  • Facebook
  • Twitter
  • Digg
  • Reddit
  • LinkedIn
  • RSS Feed

One Response to Přidání entity   do TinyMCE

  1. Millicent says:

    You’ve hit the ball out the park! Icnerdible!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Set your Twitter account name in your settings to use the TwitterBar Section.