Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Easy Fix] Doleditor Extra Field Type: Html text #21509

Closed
playcock opened this issue Jul 14, 2022 · 2 comments
Closed

[Easy Fix] Doleditor Extra Field Type: Html text #21509

playcock opened this issue Jul 14, 2022 · 2 comments
Labels
Bug This is a bug (something does not work as expected) Issue Stale (automatic label) This issue is stale because it has been open 1 year with no activity. Remove this label to keep open

Comments

@playcock
Copy link

playcock commented Jul 14, 2022

Bug

/dolibarr/htdocs/core/class/extrafields.class.php Line 1147

$doleditor = new DolEditor($keyprefix.$key.$keysuffix, $value, '', 200, 'dolibarr_notes', 'In', false, false, !empty($conf->fckeditor->enabled) && $conf->global->FCKEDITOR_ENABLE_SOCIETE, ROWS_5, '90%');

The $uselocalbrowser value is set to false (8th parameter). Does anyone know why this is? I was thinking of requesting on GitHub that they make it true OR create a new global where users can define that $uselocalbrowser be true.

This is sort of an issue because I would like to use images on the Html text extra fields. The only way I can add an image to the field is to copy/paste it on Firefox. I tried to copy/paste on Chrome and on IE, but copy/pasting images does not work on those browsers.

If the $uselocalbrowser were true, you could at least use the “Browse Server” button to add an image, but that option is not available for Html text extra fields.

Browse Server
image

Browse Server is missing on Html text extra field
image

Environment Version

14.0.5

Environment OS

Ubuntu 18.04.6

Environment PHP

7.2.24

@playcock playcock added the Bug This is a bug (something does not work as expected) label Jul 14, 2022
@playcock playcock changed the title Doleditor Extra Field Type: Html text [Easy Fix] Doleditor Extra Field Type: Html text Jul 14, 2022
@playcock
Copy link
Author

playcock commented Aug 2, 2022

Maybe if users had a constant that they could set to true on the "Other Setup" configuration page, then the $uselocalbrowser value would be true in the DolEditor call.

@github-actions
Copy link

github-actions bot commented Aug 2, 2023

This issue is stale because it has been open 1 year with no activity. If this is a bug, please comment to confirm it is still present on latest stable version. if this is a feature request, please comment to notify the request is still relevant and not yet covered by latest stable version. This issue may be closed automatically by stale bot in 10 days (you should still be able to re-open it if required).

@github-actions github-actions bot added the Issue Stale (automatic label) This issue is stale because it has been open 1 year with no activity. Remove this label to keep open label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected) Issue Stale (automatic label) This issue is stale because it has been open 1 year with no activity. Remove this label to keep open
Projects
None yet
Development

No branches or pull requests

1 participant