Hi,
I'm not sure if this have been discussed before, but when I drag and drop an image file from the Finder to an HTML document in TextMate, this is what I get :
## Component Manager: attempting to find symbols in a component alias of type (regR/carP/x!bt) <img src="Angela-Brunton/Angela-Brunton-1.jpg" width="600" height="570" alt="Angela Brunton 1" />
If I drag *two* images or more, the error message appears in the alt attribute of all elements, except the last one :
## Component Manager: attempting to find symbols in a component alias of type (regR/carP/x!bt) <img src="Angela-Brunton/Angela-Brunton-2.jpg" width="600" height="356" alt="## Component Manager: attempting to find symbols in a component alias of type (regR/carP/x!bt) <img src="Angela-Brunton/Angela-Brunton-3.jpg" width="600" height="426" alt="Angela Brunton 3" />" />
Has this bug been identified ? Thanks,
- n.
Ned Baldessin wrote:
of type (regR/carP/x!bt)
That normally points to a bug in Toast: I remember finding this out quite some time back (Toast 5, maybe). Anyway, the remedy is pretty simple: either upgrade to 6 (supposedly, I don't actually use Toast), or just go into /Library/QuickTime and move 'Toast Video CD Support.qtx' somewhere else (err, maybe the Trash!!).
Cheers, Paul
On 7/8/05, Paul McCann paul.mccann@adelaide.edu.au wrote:
Anyway, the remedy is pretty simple: either upgrade to 6 (supposedly, I don't actually use Toast), or just go into /Library/QuickTime and move 'Toast Video CD Support.qtx' somewhere else (err, maybe the Trash!!).
Perfect, it worked, thanks a lot !
Just a thought : is there a way to make the inserted tag consistent with the context, so HTML if the DOCTYPE is HTML, and XHTML if the DOCTYPE is XHTML ?
On 08/07/2005, at 18.35, Ned Baldessin wrote:
Just a thought : is there a way to make the inserted tag consistent with the context, so HTML if the DOCTYPE is HTML, and XHTML if the DOCTYPE is XHTML ?
Sort of… the way it's designed to work is that the drag command is based on the scope. So you'd want to have one drag command for the text.html scope, and another for text.xhtml (there's an XHTML language grammar on the subversion repository).
A problem with this approach is however that the language autodetection feature of TextMate uses either hte file extension or the first line of the file, which often isn't enough to tell XHTML from HTML -- another approach would be to have the drag command do a grep on $TM_FILEPATH, to check the DOCTYPE, but the pragmatic solution would probably be to always insert an HTML compatible XHTML tag.
On 07/07/2005, at 15.51, Ned Baldessin wrote:
If I drag *two* images or more, the error message appears in the alt attribute of all elements, except the last one : [...] Has this bug been identified ?
Ignoring the error message (assuming it's the Toast thing mentioned by Paul), but for dragging two images, the current drag command is made so that it leaves the alt text selected, after a drop. This doesn't work well when dragging multiple files, if you do that a lot, you may want to change the drag command.
Go to Window -> Show Bundle Editor.
Unfold the HTML bundle and click the “Insert <img> tag” item (you can set filtering above the list to Drag Commands).
In the command shown, replace this bit: alt="${0:'"$alt"'}" with this: alt="'"$alt"'"