Commit graph

1427 commits

Author SHA1 Message Date
Jacques Distler c26faabf2d Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-23 17:31:36 -06:00
Jacques Distler 4cd626ef49 Cleanup itex extension
Most of the DOM manipulations can be done
before doing the AJAX call. This leaves
just the insertion of the MathML nodes in the
mrow for the AJAX callback function.

Also, make the stroke-width for the connector tool 
default to 2.
2010-02-23 17:24:23 -06:00
Jacques Distler 5d0eb597f1 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-23 10:36:51 -06:00
Jacques Distler d201f79766 No Need to Double-Escape
Apparently, JQuery takes care of all of the
escaping we need. So ditch our own escaping
(which effectively double-escaped everything).
2010-02-23 10:16:14 -06:00
Jacques Distler 71ad1344c1 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-22 23:25:17 -06:00
Jacques Distler 42d92a0b37 More ext-itex.js Fixes
Ajax is asynchronous. Need to 
sanitize in the callback function,
NOT when adding <math> to the DOM.

Need to unescape text for itex editor
window (since JQuery seems to take care
an 'extra' round of escaping).
2010-02-22 23:20:57 -06:00
Jacques Distler 99dd9e7276 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-22 21:54:46 -06:00
Jacques Distler 85e0a2cb10 More tweaks
Make the AJAX endpoint configurable (this could still be
done better).
Use POST, rather than GET for the AJAX request, so that
we don't have to worry about overly-long equations.
2010-02-22 21:50:38 -06:00
Jacques Distler 9f86780afc Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-22 21:39:10 -06:00
Jacques Distler cb1fe51e84 Don't need an xmlns:xlink on the math element
itex2MML puts one on the mrows that are hyperlinks.
2010-02-22 21:35:29 -06:00
Jacques Distler f4f9261431 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-22 19:15:39 -06:00
Jacques Distler 47524a7104 Small tweak to itex metal 2010-02-22 19:13:46 -06:00
Jacques Distler c18d9f86f7 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-22 18:55:25 -06:00
Jacques Distler a1654f1e99 Sync with latest SVG-Edit 2010-02-22 18:53:15 -06:00
Jacques Distler cf0668eb53 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-22 08:55:27 -06:00
Jacques Distler 3fbff19997 itex Endpoint Should Handle Blank TeX
Reported by Andrew Stacey
2010-02-22 08:52:52 -06:00
Jacques Distler 58d241c4c4 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-22 00:10:28 -06:00
Jacques Distler 702b450fd9 itex Endpoint
Add a Rack Metal itex endpoint.
Add an itex tool to SVG-Edit.
Disable the foreignObject tool
(at least, for now) as it doesn't
currently play nice with the itex tool.
2010-02-22 00:05:52 -06:00
Jacques Distler 32262cb6d0 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-20 23:57:04 -06:00
Jacques Distler 956d523a4a Change default line thickness
The default stroke-width on various SVG
elements is now 2 (rather than 5).

Also, sync with latest SVG-Edit.
2010-02-20 23:54:20 -06:00
Jacques Distler 33dc8486d8 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-20 10:43:09 -06:00
Jacques Distler c16c67928e Another tweak to the close_path icons 2010-02-20 10:40:40 -06:00
Jacques Distler b1be043e6f Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-19 17:09:40 -06:00
Jacques Distler f471ba7d59 Close_path Icons, Mark II 2010-02-19 17:06:54 -06:00
Jacques Distler 6fc05795dc Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-19 16:40:41 -06:00
Jacques Distler f84b4370fa Make Closepath Icons Work 2010-02-19 16:37:20 -06:00
Jacques Distler de50902968 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-18 21:04:30 -06:00
Jacques Distler dab8e5daa1 And your little dog, too ... 2010-02-18 21:02:11 -06:00
Jacques Distler 06262ce257 Aother SVG-Edit fix that got lost in the Great Migration 2010-02-18 20:43:57 -06:00
Jacques Distler fa662e8f51 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-18 11:07:59 -06:00
Jacques Distler 9eb0573eca Fix SVG-Edit Issue #489 2010-02-18 11:04:00 -06:00
Jacques Distler 1654316557 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-18 10:16:43 -06:00
Jacques Distler 2dfb852727 Fix connectors to work with foreignObject
Alexis got this working on SVG-Edit trunk.
2010-02-18 10:12:44 -06:00
Jacques Distler d592b20032 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-17 15:48:51 -06:00
Jacques Distler 08cd194330 Restore line-height fix for foreignObjects
Line-height is inherited, and the setting in SVG-Edit
ever-so-slightly screws up foreignObject (the bounding box
is not where it should be. This can be fixed in the CSS
(and was, till the great migration to the extensions folder).
2010-02-17 15:44:53 -06:00
Jacques Distler 82e8b83ee3 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-17 14:52:46 -06:00
Jacques Distler b302bf36c5 Fixes to foreignObject Extension
(From Alex)
2010-02-17 14:48:49 -06:00
Jacques Distler da25e27263 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-17 14:45:31 -06:00
Jacques Distler ea581a50ae setCustomhandlers
Further whittling away at differences between
Instiki's and the main branch of SVG-Edit.
Now, the saveHandler is set from within the calling
page.

If the editor was opened from Instiki, choosing "Save Image"
now closes the editor window. To leave it open was kinda confusing.

Also sync with latest SVG-Edit changes.
2010-02-17 14:28:00 -06:00
Jacques Distler ebf8d6df1d Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-17 08:28:27 -06:00
Jacques Distler 4475f02586 Fix SVG-Edit Regression
"text" and "foreignObject" tools should not
disable "line" and "freehand" tools.
2010-02-17 08:26:05 -06:00
Jacques Distler 0f3bc348ad Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-17 07:31:32 -06:00
Jacques Distler db5b418659 Andrew Stacey says I can't count ... 2010-02-17 07:29:15 -06:00
Jacques Distler e5076085df Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-16 23:22:49 -06:00
Jacques Distler ce47d49e69 SVG-Edit foreignObject tool refactored as an extension
Thanks to Alexis Deveria. (Though I did fix one small bug.)
My patch-file is now down to a mere 178 lines (a big
chunk of which is Revision 569).
Also, the font-size for foreignObjects defaults to 16pt,
which will be more useful in Instiki.
2010-02-16 23:14:04 -06:00
Jacques Distler 021c3dfc88 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-16 13:58:48 -06:00
Jacques Distler 63f1d34d74 Fix a bug in cloning MathML nodes in Firefox
Gecko-based broswers append some weird-shit
attributes. Filter them
2010-02-16 13:55:36 -06:00
Jacques Distler ffc7a528f8 Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-16 11:22:58 -06:00
Jacques Distler 5094a7339b Make SVG-Edit Clone-Element Work with foreignObject
Fixes SVG-Edit Issue #485.
2010-02-16 11:17:45 -06:00
Jacques Distler e09a1e4e9a Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki 2010-02-15 13:55:45 -06:00