Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var tags = addquicktag_tags['buttons'];
var _window$wp$element = window.wp.element,
createElement = _window$wp$element.createElement,
Fragment = _window$wp$element.Fragment;
var _window$wp$richText = window.wp.richText,
registerFormatType = _window$wp$richText.registerFormatType,
unregisterFormatType = _window$wp$richText.unregisterFormatType,
toggleFormat = _window$wp$richText.toggleFormat;
var __ = window.wp.i18n.__;
var _window$wp$editor = window.wp.editor,
RichTextToolbarButton = _window$wp$editor.RichTextToolbarButton,
RichTextShortcut = _window$wp$editor.RichTextShortcut;
for (var i = 0; i < tags.length; i++) {
// check each tag for active on this post type
if (1 === _parseInt(tags[i][addquicktag_post_type])) {
(function () {
console.log(tags[i]);
if (typeof tags[i].title === 'undefined') {
tags[i].title = ' ';
}
if (typeof tags[i].end === 'undefined') {
tags[i].end = '';
}
if (typeof tags[i].access === 'undefined') {
tags[i].access = '';
}
var name = html_entity_decode(tags[i].text).replace(/["\\]/gi, "").toLowerCase();