-
Notifications
You must be signed in to change notification settings - Fork 57
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
EZP-29802: Inline custom tags support #869
Conversation
This comment has been minimized.
This comment has been minimized.
874a368
to
b022329
Compare
This comment has been minimized.
This comment has been minimized.
@adamwojs we need to run cs-fixer |
b022329
to
7155932
Compare
@@ -24,6 +24,10 @@ export default class EzBtnCustomTagEdit extends EzWidgetButton { | |||
}, {}); | |||
} | |||
|
|||
getUpdateBtnName() { | |||
return `ezBtn${this.customTagName.charAt(0).toUpperCase() + this.customTagName.slice(1)}Update`; |
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.
I would create function uppercaseFirstLetter() {}
@@ -5,7 +5,12 @@ | |||
constructor() { | |||
this.ezNamespace = 'http://ez.no/namespaces/ezpublish5/xhtml5/edit'; | |||
this.xhtmlNamespace = 'http://www.w3.org/1999/xhtml'; | |||
this.customTags = Object.keys(global.eZ.adminUiConfig.richTextCustomTags); | |||
this.customTags = Object.keys(global.eZ.adminUiConfig.richTextCustomTags).filter( |
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.
customTags
might be confusing, maybe notInlineCustomTags
or blockCustomTags
?
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.
But now I see that in other files we have terminology inlineCustomTag/customTag, so OK. :)
Checklist:
$ composer fix-cs
)