| Index
» Projects
» phpMyEdit
» Forum
» Using Extensions |
 |
msta
Joined: 15 Sep 2008
Posts: 24
Posted: 2008-10-06 12:55
Back to top
Reply with quote
|
I have some problem with using extensions:
For example using phpMyEdi-htmlarea extension
I try to work according to manual.
Everything seems to be clear except the requirement:
"Load htmlArea Script in the <head>...</head> section of your phpMyEdit calling program as described in htmlArea manual.
At first I do not know there such maual can be found.
Second, I do not know, about which script we are talking about. Is this the script show bellow?
$opts['fdd']['Uwaga'] = array(
'name' => 'Uwaga',
'select' => 'T',
'options' => 'ACPVD',
'required' => true,
'maxlen' => 65535,
'textarea' => array(
'html' => true,
'rows' => 11,
'cols' => 90),
'sort' => true
);
Or there is some other script?
If this is the script then I added it to my program and the result was not too good.
1. In the view mode the collumn, in which the html area was added is not visible.
2. In the edit mode all rows are visible (including the one with html code), but no icons for html text manipulating are visible.
Bellow please find an entire code od my program. Maybe it helps to find out what is wrong.
<?php
require_once('config.db.php');
require_once('config.table.php');
$opts['tb'] = 'Uwagi';
$opts['fdd']['ID'] = array(
'name' => 'ID',
'select' => 'T',
'options' => 'AVCPDRH', // auto increment
'maxlen' => 3,
'default' => '0',
'sort' => true
);
$opts['fdd']['Uwaga'] = array(
'name' => 'Uwaga',
'select' => 'T',
'options' => 'ACPVD',
'required' => true,
'maxlen' => 65535,
'textarea' => array(
'html' => true,
'rows' => 11,
'cols' => 90),
'sort' => true
);
$opts['fdd']['Odpowiedz'] = array(
'name' => 'Odpowiedz',
'select' => 'T',
'maxlen' => 65535,
'textarea' => array(
'rows' => 5,
'cols' => 90),
'sort' => true
);
$opts['fdd']['Status'] = array(
'name' => 'Status',
'select' => 'T',
'maxlen' => 65535,
'textarea' => array(
'rows' => 5,
'cols' => 90),
'sort' => true
);
require_once('header.php');
require_once('extensions/phpMyEdit-mce-cal.class.php');
new phpMyEdit_mce_cal($opts);
//require_once('phpMyEdit.class.php');
//new phpMyEdit($opts);
require_once('footer.php');
?>
regards
Marek
|
ajh
Joined: 17 Dec 2003
Posts: 236
Posted: 2008-10-07 11:48
Back to top
Reply with quote
|
Don't use htmlarea, it's deprecated. The htmlarea editor is no longer being developed.
Use mce_cal instead, it is based on the TinyMCE editor which is in active development. The full installation instructions are in the comments on the extension file.
|
|
Post new topic
Reply to topic
|
|
|
|