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

ColorPickerPalette.None setting for the Color Pickers in Editor tools does not work #4996

Closed
Iankodj opened this issue Apr 17, 2019 · 0 comments

Comments

@Iankodj
Copy link
Contributor

Iankodj commented Apr 17, 2019

Bug report

ColorPickerPalette.None setting should setup the color picker with input for arbitrary color. But serialization is set to "websafe".

Reproduction of the problem

@(Html.Kendo().Editor()
      .Name("editor")
      .Tools(tools => tools
          .Clear()
          .BackColor(backColor => backColor.Palette(ColorPickerPalette.None))
      )
)

Current behavior

WebSafe is rendered.

Expected/desired behavior

HSV to be rendered.

Environment

  • Kendo UI version: all

Workaround

@(Html.Kendo().Editor()
      .Name("editor")
      .Tools(tools => tools
          .Clear()
          .BackColor(backColor => backColor.Palette(ColorPickerPalette.None))
      )
)

<script>
    $(document).ready(function () {
        var editor = $("#editor").getKendoEditor();
        editor.setOptions({
            tools: editor.options.tools.map(function (tool) {
                if (tool.name === "foreColor" || tool.name === "backColor") {
                    return { name: tool.name, palette: null };
                }

                return tool;
            })
        });
    })
</script>
@zdravkov zdravkov self-assigned this Oct 30, 2020
@kendo-bot kendo-bot added the FP: Planned Sync status with associated Feedback Item label Oct 30, 2020
@zdravkov zdravkov added this to the 2020.R3.SP.next milestone Oct 30, 2020
@kendo-bot kendo-bot added FP: In Development Sync status with associated Feedback Item and removed FP: Planned Sync status with associated Feedback Item labels Oct 30, 2020
@kendo-bot kendo-bot added FP: Completed Sync status with associated Feedback Item and removed FP: In Development Sync status with associated Feedback Item labels Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants