Skip to content

933118: Added notes for possibility of modifying the predefined highlight colors in Core and MVC. #3811

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions ej2-asp-core-mvc/document-editor/how-to/customize-color-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ Similarly, you can use `documentEditorSettings` property for DocumentEditor also
{% include code-snippet/document-editor-container/customize-color-picker/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="customize-color-picker.cs" %}
{% endhighlight %}{% endtabs %}
{% include code-snippet/document-editor-container/customize-color-picker/document-editor.cs %}
{% endhighlight %}
{% endtabs %}

{% elsif page.publishingplatform == "aspnet-mvc" %}

Expand All @@ -31,15 +33,20 @@ Similarly, you can use `documentEditorSettings` property for DocumentEditor also
{% include code-snippet/document-editor-container/customize-color-picker/razor %}
{% endhighlight %}
{% highlight c# tabtitle="customize-color-picker.cs" %}
{% endhighlight %}{% endtabs %}
{% include code-snippet/document-editor-container/customize-color-picker/document-editor.cs %}
{% endhighlight %}
{% endtabs %}
{% endif %}

The following table illustrates all the possible properties for the color picker.

| Property | Behaviour |
| Property | Behavior |
|---|---|
| columns | It is used to render the ColorPicker palette with specified columns. Defaults to 10 |
| disabled | It is used to enable / disable ColorPicker component. If it is disabled the ColorPicker popup won’t open. Defaults to false |
| mode | It is used to render the ColorPicker with the specified mode. Defaults to ‘Picker’ |
| modeSwitcher | It is used to show / hide the mode switcher button of ColorPicker component. Defaults to true |
| showButtons | It is used to show / hide the control buttons (apply / cancel) of ColorPicker component. Defaults to true |
| showButtons | It is used to show / hide the control buttons (apply / cancel) of ColorPicker component. Defaults to true |


>**Note**: According to the Word document specifications, it is not possible to modify the **`Predefined Highlight colors`**. This limitation means that the range of highlight colors provided by default cannot be customized or expanded upon by the user to suit individual preferences. Consequently, users must work within the confines of the existing color palette, as no functionality currently exists to modify or personalize these predefined highlighting options.