Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Using TinyMCE and restricting which textareas it controls

phpMyEdit Configuration     Using TinyMCE and restricting which textareas it controls
Odoslať novú tému   Odpovedať na tému    
 
v13     Založený: 28.07.2008   Príspevky: 9  
Príspevok Zaslal: 2008-09-23 16:52
Návrat hore  Odpovedať s citátom     

If you are using TinyMCE in "specific_textareas" mode BUT you have some textareas which you don't want controlled by TinyMCE (in my case a client needed to paste in a paypal button) this is what you do:

In the head where TinyMCE script is called, change:

Kód:
tinyMCE.init({
mode : "specific_textareas",


to:

Kód:
tinyMCE.init({
mode : "exact",
elements : "PME_data_YOURFIELDNAMEHERE",


If you have more than one textarea that you want controlled by tinymce, simply add them in the elements separated by commas like this:

Kód:
elements : "PME_data_YOURFIELDNAMEHERE,PME_data_YOURFIELDNAMEHERE",


This way, tinymce only will control the textareas you want and will ignore the ones you don't.

 
ajh     Založený: 17.12.2003   Príspevky: 236  
Príspevok Zaslal: 2008-09-24 16:50
Návrat hore  Odpovedať s citátom     

Actually this method is now deprecated in the TinyMCE editor. From the comments in the latest version of mce_cal:

Citácia:
Previous versions of this extension used "specific_textareas" mode - this has now been deprecated in favour of "editor_selector". "editor_selector" must always be set, by default it should be set to "mceEditor".


Have a look at the comments to see how to use different configurations for different text areas.

 
v13     Založený: 28.07.2008   Príspevky: 9  
Príspevok Zaslal: 2008-09-24 16:57
Návrat hore  Odpovedať s citátom     

Thanks for that info, I had been looking for that solution and didn't find it.
:-)

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov