Medium.js icon indicating copy to clipboard operation
Medium.js copied to clipboard

invokeElement doesn't work

Open adamf321 opened this issue 11 years ago • 3 comments

The invokeElement function doesn't seem to work.

I followed the example in the documentation, but nothing happens when I click the style buttons, even though I can see in the debugger that the invokeElement function is called.

You can see an example here: http://jsfiddle.net/9cbryhLu/

adamf321 avatar Nov 24 '14 20:11 adamf321

Have you included rangy and undojs?

On 3:26PM, Mon, Nov 24, 2014 adamf321 [email protected] wrote:

The invokeElement function doesn't seem to work.

I followed the example in the documentation, but nothing happens when I click the style buttons, even though I can see in the debugger that the invokeElement function is called.

You can see an example here: http://jsfiddle.net/9cbryhLu/

— Reply to this email directly or view it on GitHub https://github.com/jakiestfu/Medium.js/issues/109.

robertleeplummerjr avatar Nov 25 '14 01:11 robertleeplummerjr

@adamf321 I've included rangy and undojs and now your example works: http://jsfiddle.net/9cbryhLu/1/

@robertleeplummerjr does it mean that those 2 librairies are hard dependencies when invokeElement is needed?

xfra35 avatar Nov 28 '14 12:11 xfra35

Yes, it seems this was the problem. I guess I missed this in the documentation. Thanks.

On 28/11/14 06:18, Florent wrote:

@adamf321 https://github.com/adamf321 I've included rangy and undojs and now your example works: http://jsfiddle.net/9cbryhLu/1/

@robertleeplummerjr https://github.com/robertleeplummerjr does it mean that those 2 librairies are hard dependencies when |invokeElement| is needed?

— Reply to this email directly or view it on GitHub https://github.com/jakiestfu/Medium.js/issues/109#issuecomment-64888225.

Adam Fenton Solnamic - Web Solutions http://solnamic.com | [email protected] mailto:[email protected]

adamf321 avatar Nov 28 '14 14:11 adamf321