Přeskočit přímo na text


Automatické zalomování textu, Custom Filter

Kategorie: Webdesign
Týká se verze: Drupal 6.x

Dobrý den,

potřeboval bych nějak zajistit, aby se automaticky posunul text na další řádek v případě, že je na konci a,i,u,v apod …

Standartně se mi o to satral modul Custom Filter, který slouží pro vkládání vlastních filtrů (jak vyplývá z názvu :).

Na drupalu 5 mi fungoval, ale na 6 se zdá se nechytá.

Filter vypadá takto: Pattern: /\s([svzkuoaiSVZKAUOI])\s/ Replacement text: $1 

tady je k otmu popis: Replacement Text. Matched string will be replaced with text supplied here. Use $n (e.g. $1, $25) or ${n} (e.g. ${1}, ${25}), with n range from 0 to 99, to get the n-th original strings matched ($0 represents the entire matched string). If you set the PHP Code below, you can enter replaced text with some PHP Code. n-th matched string will be provided in $matches[n], and there will be a global variable named $vars you can use it for your own purpose. Don't forget to write the return statement.

nevíte co s tím ? Děkuji moc

 

Taky by se mi hodilo

Taky by se mi hodilo

Poslat nový komentář

Obsah tohoto pole je soukromý a nebude veřejně zobrazen.
  • You can use Texy! to format and alter entered content.
  • Povolené HTML značky: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <p> <br> <b> <i> <h2> <img> <pre> <sup> <sub> <pre class="php"> <span class="php-keyword1"> <span class="php-var"> <span class="php-num"> <img class="screenshot"> <p class="beginner"> <a class="greybox"> <h3> <h4>

Více informací o možnostech formátování

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.

Hledat

Přihlášení

Bezpečnost Drupalu

Z hlediska bezpečnosti je Drupal na velmi vysoké úrovni, díky propracovanému systému hlášení, prověřování a řešení možných problémů.

Čtěte více a odebírejte bezpečnostní aktuality

Poslední komentáře

Kdo je online

Momentálně je online 1 uživatel a 0 hostů.

Online uživatelé