-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat(CNE-10708): add CNE Ticketing Widget #1705
Conversation
url: string; | ||
}> { | ||
static vendorPrefix = "offset"; | ||
static type = "cne-ticketing-widget-embed"; |
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.
We've been going back and forth on naming. For sure I think we don't need widget
in the annotation name. Perhaps
cne-event-registration-embed
or cne-swoogo-embed
?
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.
@bachbui We prefer cne-event-registration-embed
code to insert into CKeditor in copilot
<cne-event-registration url="https://baseurl?loggedout=loggedouturlslug&loggedin=loggedinslug&privacy=true"></cne-event-registration>
markdown
[#cneeventregistration: https://baseurl?loggedout=loggedouturlslug&loggedin=loggedinslug&privacy=true]
embed
<cne-event-registration-embed url="https://baseurl?loggedout=loggedouturlslug&loggedin=loggedinslug&privacy=true"></cne-event-registration-embed>
Is that okay? I wait for a response before proceeding with the changes (file names, classes, tests, etc.)
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.
Thanks sounds great to me
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.
@bachbui rename cne-ticketing-widget to cne-event-registration
Let me know if everything is correct.
}, | ||
}) | ||
); | ||
}); |
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 a note - the purpose for this is only to support a conversion from this kind of contrived html snippet. If in the future users would have a different way of producing this kind of embed (for example, perhaps in a rich-text environment rather than inserting via an embed code, the user would have a form to enter in the loggedIn/loggedOut URLs and privacy flag) then we could remove this
@@ -214,6 +215,22 @@ export default function convertThirdPartyEmbeds(doc: Document) { | |||
}) | |||
); | |||
}); | |||
/** | |||
* CNE Ticketing Widget | |||
*/ |
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.
Can we please update this comment to describe what this HTML structure is? IE, this is a custom HTML element used to describe an event registration block with a specific URL, with some specific metadata encoded in the URL
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'll add a short description, thanks
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.
Updated comment with a short description
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.
Left some quick comments - mainly I would like to rename the annotation in offset-annotations to match our naming conventions used elsewhere. Secondly, it would be nice to add some comments in the html converter where we are converting a custom HTML element
Add CNE Ticketing Widget
code to insert into CKeditor in copilot
<cne-ticketing-widget url="https://baseurl?loggedout=loggedouturlslug&loggedin=loggedinslug&privacy=true"></cne-ticketing-widget>
markdown
[#cneticketingwidget: https://baseurl?loggedout=loggedouturlslug&loggedin=loggedinslug&privacy=true]
embed
<cne-ticketing-widget-embed url="https://baseurl?loggedout=loggedouturlslug&loggedin=loggedinslug&privacy=true"></cne-ticketing-widget-embed>