Closed (fixed)
Project:
TinyMCE Node Picker
Version:
6.x-2.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Jan 2010 at 14:59 UTC
Updated:
15 Jan 2010 at 16:40 UTC
Hello,
When you're typing a text and you use the node picker button to insert a link:
* in IE, it's added at the beginning of the text;
* but in FF it's added on the position of the cursus.
I've been searching for a while now, without results.
I had the old version, but also tried with the newest version.
Simon
Comments
Comment #1
peter törnstrand commentedThis sounds like a old bug that should not be present in BETA4. I have tried but was not able to reproduce this error in IE6 or 7.
Comment #2
harrrrrrr commentedJust updating the files in the module wasn't enough, I had to activate the (new) button in the wysiwyg-profile. Nice new icon btw ;)
I used this module to insert a code with the selected nodes nid so it would be picked up by a custom filter who made a link towards the file attached to that node. If there are more files attached to the node, it simply links to the node. With the previous version of node-linkpicker, i simply changed that in the view-templates.
In the beta4-version you have to select text in order to create a link, so I guess I can't use the beta4.
I think I have to follow the function in that template file to fix my problem :
var insertText = ' [TITEL:'+ title + '#NID:' + nid + ']';
tinyMCE.execCommand("mceInsertContent", false, insertText);
Thx anyway and congrats with the nice work on this module.
Comment #3
peter törnstrand commentedIn HEAD we have changed so that you don't have to select text, the nodes title gets inserted if no text is selected. New release coming soon.