[r1420] New, Edit item not load editor button

More
11 years 8 months ago #27512 by supachai_chai
FLEXIcontent v1.5.6 r1420 for J1.5 Make New, Edit item not load editor button under add description text area.

please fix it :D

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #27513 by ggppdk
You mean the editor-xtd buttons , just bellow the editor area, like "Read More", "Page Break" etc

Actually they should appear,
is it frontend or backend? both?
if it is frontend, do you have a form template override?

If you have an old template override, it contained a bug:
try changing the line
Code:
$field->html = $this->editor->display( 'text', $maintext, '100%', $height, '75', '20' ) ;
to
Code:
$field->html = $this->editor->display( 'text', $maintext, '100%', $height, '75', '20', $skip_buttons_arr = array() ) ;


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #27563 by supachai_chai
This page used manage items on back-end only and used JCE 1.5.7.14 version.
The back-end page not override template. :cry:

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #27569 by ggppdk
You mean you resolved it?

Currently the editor area is created via calling textarea.php code.

Can you give access to review this one?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #27647 by supachai_chai
OK i can debug this issue witch looking at
/plugins/flexicontent_fields/textarea.php
start line: 132
Code:
// initialise property if($field->field_type == 'textarea') { if($item->version < 2 && $default_value) { $field->value = array(); $field->value[0] = JText::_($default_value); } elseif (!$field->value) { $field->value = array(); $field->value[0] = ''; } $field_name = $field->name; $field_idtag = $field->name; $skip_buttons_arr = array('pagebreak', 'readmore'); } else if ($field->field_type == 'maintext') { if ( !is_array($field->name) ) { $field_name = $field->name; $field_idtag = $field->name; } else { foreach ( $field->name as $i => $ffname) { if ($i==0) { $field_name = $field_idtag = $ffname; } else { $field_name .= '['.$ffname.']'; $field_idtag .= '_'.$ffname; } } } $required = ''; $skip_buttons_arr = array(); }
In condition if($field->field_type == 'textarea')
Edit at line: 143 from
Code:
$skip_buttons_arr = array('pagebreak', 'readmore'); to $skip_buttons_arr = array();

In condition if($field->field_type == 'maintext')
Edit line: 159 from
Code:
$skip_buttons_arr = array(); to $skip_buttons_arr = array('pagebreak', 'readmore');

Because, this condition make it true for The main description text (introtext/fulltext) [Core] field. :D

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #27652 by ggppdk
This is wrong, if it works for you, it means that the code is called with wrong field type.

Does this wotk in both frontend and backend?
You said you have upgraded from v1.5.4
Maybe you have a Joomla template override for frontend that you forgot about?

Can you give me access to the access to the site?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.299 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline