You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.
Hello, I am really new, so perhaps the error exposed below is my fail. However, here is it:
The modules are managed with RequireJS.
First I got a Handlebars error, same as described here. Solutions like "shim with exports" and "change Handlebars library to handlebars.runtime" did not work for me.
Then if the first one is got solved (adding root["Handlebars"] = factory(); in handlebars.js, inside if (..&& define.amd)", which seems very wrong todo) I've got a similar one with MediumEditor.
After reading about RequireJS, I've come with another solution:
Remove modification from handlebar
Modify medium-editor-insert-plugin.js by adding Handlebar and MediumEditor dependencies, here is the code:
Please give me some feedback and explanation if this is bug or I am doing something wrong.
Your plugin is awesome, that's why I would be very grateful for your help.
The text was updated successfully, but these errors were encountered:
Hello, I am really new, so perhaps the error exposed below is my fail. However, here is it:
The modules are managed with RequireJS.
First I got a Handlebars error, same as described here. Solutions like "shim with exports" and "change Handlebars library to handlebars.runtime" did not work for me.
Then if the first one is got solved (adding root["Handlebars"] = factory(); in handlebars.js, inside if (..&& define.amd)", which seems very wrong todo) I've got a similar one with MediumEditor.
After reading about RequireJS, I've come with another solution:
(function (factory) { if (typeof define === 'function' && define.amd) { define(['jquery', 'handlebars', "medium-editor"], factory); } else if (typeof module === 'object' && module.exports) { module.exports = function( root, jQuery ) { if ( jQuery === undefined ) { if ( typeof window !== 'undefined' ) { jQuery = require('jquery'); } else { jQuery = require('jquery')(root); } } factory(jQuery); return jQuery; }; } else { factory(jQuery); } }(function ($, Handlebars, MediumEditor) { ...
Please give me some feedback and explanation if this is bug or I am doing something wrong.
Your plugin is awesome, that's why I would be very grateful for your help.
The text was updated successfully, but these errors were encountered: