PDA

View Full Version : AkoStaff problem with WYSIWYG editors


gintas
21.04.2004, 17:54
I just noticed that AkoStaff (Biograpy feature) works only with htmlArea2 but doesn't work with other editors (rte, htmlarea3_xtd).
After I installed htmlArea3_xtd and try to edit Biography in Akostaff, browser doesn't display any WYSIWYG editor and tells that there is an error in line:

editor_generate('biography');

This line comes from file:
administrator/components/com_akostaff/admin.akostaff.html.php

Which has:
....................
<script language="JavaScript1.2" defer="defer">
editor_generate('biography');
</script>
.......................
Unfortunatelly this only works with htmlarea2, but not with other 2 WYSIWYG editors.

I'm trying to figure out how to fix that, but I'm not a programer therefore if anyone can help I would greatly appreciate.

I'd really like to use htmlarea3_xtd; and AkoStaff is a major component in my site, therefore I need both of them to work.

gintas

gintas
21.04.2004, 19:40
Ok, I was able to hack AkoStaff myself.
I edited file administrator/components/com_akostaff/admin.akostaff.html.php

First I commented lines:

<!--
<script language="JavaScript1.2" defer="defer">
editor_generate('biography');
</script>
-->


and then I replaced following line(s):

<textarea class="inputbox" id="biography" name="biography" cols="70" rows="15" style="width:500; height:200"><?php echo htmlspecialchars( $row->biography, ENT_QUOTES );?></textarea>


with the lines:

<?php
// parameters : areaname, content, hidden field, width, height, rows, cols
editorArea( 'editor1', $row->biography , 'biography', '500', '200', '50', '5' ) ;
?>
</textarea>

I was simply comparing this file with another file administrator/classes/html/HTML_categories.php which handles any WYSIWYG editor.

Since I am not a programer, don't rely on me, but so far it works for me.

Gintas

Caygill
19.09.2004, 05:17
<?php
// parameters : areaname, content, hidden field, width, height, rows, cols
editorArea( 'editor1', $row->biography , 'biography', '500', '200', '50', '5' ) ;
?>
</textarea>

I was simply comparing this file with another file administrator/classes/html/HTML_categories.php which handles any WYSIWYG editor.

Since I am not a programer, don't rely on me, but so far it works for me.

Gintas

Worked for me also. The last tag is unnecessary in current syntax - you do not need to close a textarea tag </textarea>, as it does not exist anymore.

Bi4a
14.02.2005, 13:22
worked for me also, thanks