I have searched all over the forums for this but no luck.
I have a client that gets sent blocks of html code from Amazon.com that he needs to insert into his web pages.
He needs to insert these blocks of code inside a table, but is useless when it comes to using the Source view.
I need to create a toolbar button that will open a dialogue box, prompt you to enter a the code in a text area and when the insert button is clicked, to insert it as html code at the cursor position.
I saw the Snippets plugin that basically does the right job, but only works with pre-defined blocks of code embedded in a xml file. These code blocks are different every time, so that plugin doesn't work for me.
Can someone help me through this from beginning to end? Bits of javascript are good but don't help when I don't know how to apply it.
Thanks in advance.
Nico
p.s. Sorry for the cross post, I couldn't find a way to delete the message I posted in the Version 2 forum.
.
I have a client that gets sent blocks of html code from Amazon.com that he needs to insert into his web pages.
He needs to insert these blocks of code inside a table, but is useless when it comes to using the Source view.
I need to create a toolbar button that will open a dialogue box, prompt you to enter a the code in a text area and when the insert button is clicked, to insert it as html code at the cursor position.
I saw the Snippets plugin that basically does the right job, but only works with pre-defined blocks of code embedded in a xml file. These code blocks are different every time, so that plugin doesn't work for me.
Can someone help me through this from beginning to end? Bits of javascript are good but don't help when I don't know how to apply it.
Thanks in advance.
Nico
p.s. Sorry for the cross post, I couldn't find a way to delete the message I posted in the Version 2 forum.
.