In J2.5 Description field doesn't show the editor

More
11 years 11 months ago - 11 years 11 months ago #32273 by gruz
Core Description field doesn't show the editor:
[img



I found out, that the reason is in plugins/flexicontent_fields/textarea/textarea.php
Line about 177:
Code:
if (!$use_html) {

But core description field doesn't have this option, so it's always NO:

[img

J2.5
FC - 2.0 - Rev 1612 (since 17-00 30.12.2012)
Last edit: 11 years 11 months ago by gruz.

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

More
11 years 11 months ago #32275 by ggppdk
-- This is configurable per Content Type via a parameter called "Hide HTML", so you can configure it there

It is sent via some code that resembles this (via fields class method):
if ( strlen($hide_html) )
$use_html = !$hide_html;

But this actually a bug , or at least wrong behavior

because default value for the parameter is "" (aka Use Global) but this parameter "Hide HTML" does not exist (as you said in Description field parameters) and thus the above code does not set it , and inside the textarea field it $use_html has a default of ZERO, and thus the effect that you see.

-- So, i will make these changes:
a. change use_html to default to 1 in textarea.php
b. also add inside core.xml the parameters :
hide_html, height
for the description field

thanks for report,
Regards

PS, currently decided to finish these before announcing new version to JED
1. Almost finished adding custom fields/custom HTML ability to related item / related item backlinks fields

2. Doing XDEBUG profiling to the code to find performance issues (found 2 important performance issues with image field which were fixed)

3. Mostly finished alternative FILTERS display (for text field) as:
a. Single Select Field
b. Single Text Field
c. Dual Select Field Range
d. Dual Text Field Range
e. Single Toggle Buttons
f. Multi Toggle Buttons

4. Add automatic download of languages packs


-- 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.676 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