Hi all ...
As this cool module now fullfills everything i need, but should allow smarter
input, for lets say Wysiwyg Editors like FCK here comes a small snippet that extends
your Toolbar with an InsertNode button.
Simply extract the attached zip file into your FCKEditor/plugins folder.
then open up the fckeditor.config.js file and add
FCKConfig.Plugins.Add( 'insertnode', 'en,pl' ) ;
next to the other plugin addings.
After this specify the icon to show up in your desired toolbar.
mine looks something like this
['Link','Unlink','LinkToNode','LinkToMenu','Anchor', 'InsertNode'],
Greetings
Zewa
Comments
Comment #1
AlexisWilke commentedHi Zewa,
I tried to see whether it would work for me and it failed. I had to change the oEditor with FCK instead. Which version of FCKeditor are you using?
Thank you.
Alexis Wilke
(EDIT)
P.S.
I added my version on my site here: http://linux.m2osw.com/insert_node
We cannot actually add .tar.gz files to the CVS so I cannot put that in the InsertNode project directly.
I will add your version now.
Comment #2
zewa commentedI use version 2.6.3 of FCKEditor.
the only thing left unclear for me is, which ID the FCKEditor gets from Drupal by default.
couldn't find the position, but a search of the files gave me that 'oFCK_1' is mine.
Can you tell me exactly what didnt work?
you mean the first line of InsertNodeCommandText?
Shoot up Firebug and debug that JS stuff so we should be able to find the buggy position.
I built this plugin using standard tutorials, so by gods sake it should work properly :)
Greetings
Zewa
Comment #3
AlexisWilke commentedZewa,
Yes. That line returned nothing (null) Then using oEditor would obviously fail.
Using FCK works however. I looked at some of the other plugins to see what they were doing and they use FCK instead.
Now, I think it would be really great if we could have a dialog with different widgets like drop-downs with "normal", "collapsible", "collapsed". Then a set of check boxes for "title", "teaser", "body", "more", "comments".
And we should be able to steal the linktonode code so users can select the node easily.
Thank you.
Alexis Wilke
Comment #4
zewa commentedyou're absolutely right ...
that would push the usability extremely.
I'll throw some looks at the linktonode module maybe it's not so hard to append it.
Greetings
Zewa
Comment #5
Anonymous (not verified) commentedI'm testing this right now, and it's promising, but the UI... is kinda sucky.
If the plugin were using the default FCK interface that would already be a plus. Any chance to see that happening ?
Comment #6
AlexisWilke commentedHi couzinhub
If you know how to program FCKeditor interface windows... then real soon? 8-)
I'd have to take time to learn that and so far it has not happened. I'd like to have it for other modules too such as http://drupal.org/project/tableofcontents
So it would not be a bad thing for me to learn, but that's quite a bit of work!
Thank you.
Alexis Wilke
Comment #7
Anonymous (not verified) commentedha, I guess I should start by learning js :)
Thanks for the fast reply. I'll keep checking. For now I chose to use node ref and noderef browser.