From 00ab985b296b8a41f782be9766faa7e6320f4198 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Fri, 6 Nov 2015 11:59:21 +0100 Subject: fixed edit mode --- raphael.inline_text_editing.js | 193 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 193 insertions(+) create mode 100644 raphael.inline_text_editing.js (limited to 'raphael.inline_text_editing.js') diff --git a/raphael.inline_text_editing.js b/raphael.inline_text_editing.js new file mode 100644 index 0000000..ccc37ed --- /dev/null +++ b/raphael.inline_text_editing.js @@ -0,0 +1,193 @@ +/* + * Inline text editing tool for Raphaël 2.0 & compatible with Raphaël Free transform. + * Source: https://github.com/marmelab/Raphael.InlineTextEditing + * Licensed under the MIT license + */ +(function (root, factory) { + if (typeof define === "function" && define.amd) { + // AMD. Register as an anonymous module. + define(["raphael"], function(Raphael) { + // Use global variables if the locals are undefined. + return factory(Raphael || root.Raphael); + }); + } else { + // RequireJS isn't being used. Assume Raphael is loaded in