-
Notifications
You must be signed in to change notification settings - Fork 6
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
IBX-7725: RTE area is hidden if custom-tag label is too long #146
IBX-7725: RTE area is hidden if custom-tag label is too long #146
Conversation
@@ -48,7 +48,7 @@ class IbexaCustomTagEditing extends Plugin { | |||
</button>`; | |||
|
|||
domElement.innerHTML = ` | |||
<div class="ibexa-custom-tag__header-title">${customTagConfig.label}</div> | |||
<div class="ibexa-custom-tag__header-title" title="${customTagConfig.label}">${customTagConfig.label}</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The label should strictly speaking be escaped. If so, how do you want it escaped?
For instance, adding "
or </div>
in translation file will break the html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, changed title=
into data-cke-tooltip-text=
. Not sure if this is preferable or not
I don't get it.. When running it locally, prettier doesn't complain about the file |
You need to install prettier with yarn and then update file with prettier. Use yarn install in fieldtype-richtext. |
Yeah, I got that part:
|
With my prettier your changes modiefied looks differently. |
@vidarl I fixed prettier |
Thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just code style
src/bundle/Resources/public/js/CKEditor/custom-tags/block-custom-tag/custom-tag-editing.js
Outdated
Show resolved
Hide resolved
…om-tag/custom-tag-editing.js Co-authored-by: Dariusz Szut <dew326@gmail.com>
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA approved on IbexaDXP 4.5 commerce.
The label of the custom tag might hide the input field
The label is absolutely positioned before the input field, so the input field doesn't automatically float according to size of label
Before patch
After patch
TODO:
$ composer fix-cs
).