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
.
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
.
RE: Insert HTML code at cursor position
You could take a look at this plugin: http://sourceforge.net/tracker/index.ph ... tid=737639
RE: Insert HTML code at cursor position
With 2.3.2 you don't need that plugin (or other patches) anymore
RE: Insert HTML code at cursor position
RE: Insert HTML code at cursor position
As the first line of "What's new" (http://www.fckeditor.net/whatsnew) said, now the Template dialog can be used to replace the full content OR insert at the cursor position, so using another plugin for that task isn't necessary anymore, and people that patched their Template dialog to allow that functionality don't need those patches, they can use the original files and upgrading is easier.