So should the javascript target your content on the frontend only on that richtexteditor on a specific page, or should it work on all pages that use the richtexteditor?
Or should it be a link, so people can download that javascriptfile.
If you have many pages, but only this one should use the effect, I would simply add a class to the style menu in the richtexteditor, Then the editor can choose what part of the text should have the class. Then I would write some lines of jquery, to target that class.
You could also make a macroContainer and add it to the documenttype, you are using for your page. On the macropicker I would add:
linktext field
multiline field
Write some xslt that would use this macro. In the xslt put a clas on the multilinefield and linktext field, and target those fields with jquery
Sounds like you don't need to put the javascript in your rich text editor, but somewhere in your template/masterpage for that page.. That should do the trick, right?
How to add javascript file in richtexteditor
I have javascript file in script folder, I want that apply to richtexteditor.
Do you want it so you can change the rich text editor? Or do you want the editor of your site to be able to add a javascript file through the RTE?
Thanks Sebastiaan for your quick replay
I have sparyeffect javascript file in my website.so I want to add this javascript file in that richtexteditor.
So should the javascript target your content on the frontend only on that richtexteditor on a specific page, or should it work on all pages that use the richtexteditor?
Or should it be a link, so people can download that javascriptfile.
I'm still not sure what you want to do :)
Thanks Johan for your reply.
The sparyeffect javascript file i am using only on that single web page.It is like scroll down when click on link.
When we click on link content will be visible to us.so i want to chanage content through richtext editor.
is the link also in the richtexteditor?
If you have many pages, but only this one should use the effect, I would simply add a class to the style menu in the richtexteditor, Then the editor can choose what part of the text should have the class. Then I would write some lines of jquery, to target that class.
You could also make a macroContainer and add it to the documenttype, you are using for your page. On the macropicker I would add:
linktext field
multiline field
Write some xslt that would use this macro. In the xslt put a clas on the multilinefield and linktext field, and target those fields with jquery
Sounds like you don't need to put the javascript in your rich text editor, but somewhere in your template/masterpage for that page.. That should do the trick, right?
is working on a reply...