Medium.js
Medium.js copied to clipboard
invokeElement doesn't work
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/
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.
@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?
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]