Skip to content

Commit

Permalink
Use same CDN as Flarum for images
Browse files Browse the repository at this point in the history
Solve part of #1
  • Loading branch information
clarkwinkelmann committed Feb 1, 2017
1 parent 6f59162 commit 5314f18
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions js/forum/dist/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -1254,10 +1254,12 @@ System.register("clarkwinkelmann/emojionearea/components/EmojiAreaButton", ["fla

$('<div />').emojioneArea({
container: $container,
standalone: true,
hideSource: false,
autocomplete: false,
events: {
standalone: true, // Popup only mode
hideSource: false, // Do not hide the target element
autocomplete: false, // Do not try to provide autocomplete - not sure if useful in standalone mode but safer
sprite: false, // Not used by the actual picker, but loads an additional CSS file if enabled
useInternalCDN: false, // Use the same CDN as Flarum so images are not fetched twice
events: { // Listen for clicks to sync with Flarum editor
emojibtn_click: function emojibtn_click(button, event) {
var shortcode = button.data('name');
editor.insertAtCursor(shortcode);
Expand Down
10 changes: 6 additions & 4 deletions js/forum/src/components/EmojiAreaButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ export default class EmojiAreaButton extends Component {

$('<div />').emojioneArea({
container: $container,
standalone: true,
hideSource: false,
autocomplete: false,
events: {
standalone: true, // Popup only mode
hideSource: false, // Do not hide the target element
autocomplete: false, // Do not try to provide autocomplete - not sure if useful in standalone mode but safer
sprite: false, // Not used by the actual picker, but loads an additional CSS file if enabled
useInternalCDN: false, // Use the same CDN as Flarum so images are not fetched twice
events: { // Listen for clicks to sync with Flarum editor
emojibtn_click: function (button, event) {
var shortcode = button.data('name');
editor.insertAtCursor(shortcode);
Expand Down

0 comments on commit 5314f18

Please sign in to comment.