Tui.image-editor: The color picker slider does not appear

Created on 22 Feb 2019  路  10Comments  路  Source: nhn/tui.image-editor

Version

v3.5.1

Development Environment

Chrome on Windows

Current Behavior

The color picker slider does not appear. Also, if CSS is adjusted and displayed, the color gradation image is not displayed.

190222-141057

Expected Behavior

A color slider should be displayed when you click on the color field of the color picker.

Enhancement

Most helpful comment

v3.8.0 As of now, the following snippets can be used to display a color sledder. I'm using jQuery.

// Note: $base is container jQuery object of TUI Image Editor 
$base.find('.tui-colorpicker-palette-container').on('click', '.tui-colorpicker-palette-preview', function() {
    $(this).closest('.color-picker-control').height('auto').find('.tui-colorpicker-slider-container').toggle();
});
$base.on('click', function() {
    $base.find('.tui-colorpicker-slider-container').hide();
});

tui-image-editor-color-slider

How to make it work in react?

All 10 comments

any progress on this issue I am facing the similar issue.

Image :

Screensha2019-09-12 at 12 07 35 PM

I'm currently still having this issue. Is there a workaround for the time being? @junghwan-park

Any hope of this getting resolved soon or is there a workaround @junghwan-park ?

For anyone still experiencing this issue, I managed to resolve it like so:

.tui-image-editor-container .color-picker-control .tui-colorpicker-palette-button {
    font-size: 4px !important;
    border-radius: 50% !important;
    height: 16px;
}

You would also need to add this for the color picker container:

.tui-image-editor-container .color-picker-control {
    width: auto!important;
}

Here's the result:
Screen Shot 2019-10-24 at 7 10 43 AM

Include this in the head of your html:

<link type="text/css" href="https://uicdn.toast.com/tui-color-picker/v2.2.3/tui-color-picker.css" rel="stylesheet">

or copy the tui-color-picker.css from the tui-color-picker npm package. I am not sure if this is omitted from the documentation or whether it is intended to load automatically from the script.

v3.8.0 As of now, the following snippets can be used to display a color sledder. I'm using jQuery.

// Note: $base is container jQuery object of TUI Image Editor 
$base.find('.tui-colorpicker-palette-container').on('click', '.tui-colorpicker-palette-preview', function() {
    $(this).closest('.color-picker-control').height('auto').find('.tui-colorpicker-slider-container').toggle();
});
$base.on('click', function() {
    $base.find('.tui-colorpicker-slider-container').hide();
});

tui-image-editor-color-slider

v3.8.0 As of now, the following snippets can be used to display a color sledder. I'm using jQuery.

// Note: $base is container jQuery object of TUI Image Editor 
$base.find('.tui-colorpicker-palette-container').on('click', '.tui-colorpicker-palette-preview', function() {
    $(this).closest('.color-picker-control').height('auto').find('.tui-colorpicker-slider-container').toggle();
});
$base.on('click', function() {
    $base.find('.tui-colorpicker-slider-container').hide();
});

tui-image-editor-color-slider

how to make it work in angular?

v3.8.0 As of now, the following snippets can be used to display a color sledder. I'm using jQuery.

// Note: $base is container jQuery object of TUI Image Editor 
$base.find('.tui-colorpicker-palette-container').on('click', '.tui-colorpicker-palette-preview', function() {
    $(this).closest('.color-picker-control').height('auto').find('.tui-colorpicker-slider-container').toggle();
});
$base.on('click', function() {
    $base.find('.tui-colorpicker-slider-container').hide();
});

tui-image-editor-color-slider

How to make it work in react?

The detail button is intentionally hidden, so it is not a bug. However, we plan to improve the detail button in the future.

@skyturks
Just import color picker css file as well.
import "tui-color-picker/dist/tui-color-picker.css";

I think this should be documented in the project's README page as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sj279811799 picture sj279811799  路  4Comments

Aleczhang1992 picture Aleczhang1992  路  3Comments

ganesh-500 picture ganesh-500  路  5Comments

qradle picture qradle  路  4Comments

lightway82 picture lightway82  路  5Comments