# themify-event-post/trunk/assets/tinymce.js

Themify Event Post, version trunk. 1 lines.

- Page: https://pluginprobe.com/plugins/themify-event-post/trunk/code/assets/tinymce.js
- Raw: https://pluginprobe.com/plugins/themify-event-post/trunk/raw/assets/tinymce.js
- Modified: 2024-02-19T10:13:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/themify-event-post/trunk/code/assets/tinymce.js#L10-L20`.

```javascript
!function($){"use strict";"object"==typeof themifyEventPostsMCE&&($('<script type="text/html" id="tmpl-themify-event-post-shortcode">'+themifyEventPostsMCE.template+"</script>").appendTo("body"),tinymce.PluginManager.add("btnthemifyEventPosts",(function(t,e){t.addButton("btnthemifyEventPosts",{title:themifyEventPostsMCE.labels.menuName,onclick(){var e=[];jQuery.each(themifyEventPostsMCE.fields,((t,o)=>{"colorbox"==o.type&&(o.onaction=createColorPickAction()),e.push(o)})),t.windowManager.open({title:themifyEventPostsMCE.labels.menuName,body:e,onSubmit(e){var o=this.toJSON();o.selectedContent=t.selection.getContent();var i=wp.template("themify-event-post-shortcode");t.insertContent(i(o))}})}})})))}(jQuery);
```
