OK - some hints as to how to do this. Firstly download the latest version of the extension from this bug report:
http://opensource.platon.sk/projects/bug_view_advanced_page.php?f_bug_id=224
Go to the bottom of the code, to the form_end() function:
| Kód: |
/* Add script calls to the end of the form for all html fields */
if (isset($this->htmlfields)) {
echo '<script type="text/javascript"><!--',"\n";
foreach($this->htmlfields as $ck => $cv) {
echo 'HTMLArea.replace("pme_id_',$cv,'");',"\n";
};
echo '// -->',"\n";
echo '</script>',"\n";
};
|
The line that needs modifying is the HTMLArea.replace one, you need to add a config object to it:
| Kód: |
| echo 'HTMLArea.replace("pme_id_',$cv,'", config);',"\n"; |
where "config" is the HTMLArea configuration object that has your customised configuration. You need to create this configuration object in javascript somewhere, I would recommend including a javascript file in the PME calling file just after the htmlarea.js call that does this.
Note that this will set all of the htmlarea fields to the same config. You could set the config object as a parameter to the textarea field if you want to use separate configs for each of the fields, but that will involve considerably more coding.
Hope this helps.
|