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

EZP-29802: Inline custom tags support #869

Merged
merged 1 commit into from
Mar 4, 2019
Merged

Conversation

dew326
Copy link
Member

@dew326 dew326 commented Mar 1, 2019

Question Answer
Tickets https://jira.ez.no/browse/EZP-29802
Requires ezsystems/ezplatform-richtext#29
Bug fix? no
New feature? yes
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review
  • backend

@ezrobot

This comment has been minimized.

@dew326 dew326 requested a review from tischsoic March 1, 2019 14:42
@dew326 dew326 self-assigned this Mar 1, 2019
@dew326 dew326 changed the title [WIP] EZP-29802: Inline custom tags support EZP-29802: Inline custom tags support Mar 4, 2019
@dew326 dew326 force-pushed the inline-custom-tags branch from 874a368 to b022329 Compare March 4, 2019 13:04
@ezrobot

This comment has been minimized.

@lserwatka
Copy link
Member

@adamwojs we need to run cs-fixer

@dew326 dew326 force-pushed the inline-custom-tags branch from b022329 to 7155932 Compare March 4, 2019 13:17
@@ -24,6 +24,10 @@ export default class EzBtnCustomTagEdit extends EzWidgetButton {
}, {});
}

getUpdateBtnName() {
return `ezBtn${this.customTagName.charAt(0).toUpperCase() + this.customTagName.slice(1)}Update`;
Copy link
Contributor

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(
Copy link
Contributor

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?

Copy link
Contributor

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. :)

@lserwatka lserwatka merged commit 801992f into master Mar 4, 2019
@lserwatka lserwatka deleted the inline-custom-tags branch March 4, 2019 15:13
konradoboza pushed a commit to konradoboza/ezplatform-admin-ui that referenced this pull request May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants