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

gh-585 - Edit Markdown and HTML text in the bulk editor #629

Merged
merged 7 commits into from
Aug 1, 2022

Conversation

pjmonks
Copy link
Contributor

@pjmonks pjmonks commented Jul 29, 2022

Resolves #585

Updates the bulk editor to support full Markdown and HTML editing on any profile field that has the type text - the description field in the "Default profile" is a good example.

  • Uses a basic popup cell editor for basic text edits within the cell, as expected for agGrid.
  • There is then a "pop out" button to expand the cell value into a separate dialog. This gives full editor control over the Markdown/HTML text.

Screenshots

image

image

OButlerOcc
OButlerOcc previously approved these changes Aug 1, 2022
Copy link
Contributor

@OButlerOcc OButlerOcc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easy to follow, this one. Works as far as I've poked it locally. I've noticed we're having to non standardise a few column options now we're using custom components I wonder if there's a smarter way to do that.

this.gridColumnApi.autoSizeColumns(columnIds);

this.nonStandardColWidths
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've got a method for non standard col resizable, if we need more of these may be worth structuring as something we can dynamically adjust via properties or something?

* Initial test to see what this looks like and how useable it is
* Not complete, but basics are available
* Popup cell editor
* Excel-like controls
* Similar to built in ag Grid version but includes hint about creating new lines
* Also includes "Edit" button, this will trigger a larger content editor to appear
* Trigger via button click in TextAreaCellEditorComponent
* Open dialog with MDM content editor
* Resize all columns correctly
* Remove agGrid overlay code
Copy link
Contributor

@OButlerOcc OButlerOcc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't see any changes from last time after rebase

@pjmonks pjmonks merged commit b8b1516 into develop Aug 1, 2022
@pjmonks pjmonks deleted the feature/gh-585 branch August 1, 2022 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable the HTML / MD editor on text fields within the profile editor
2 participants