Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-03-26 16:17:39

wijnand
Xinha Community Member
Registered: 2005-07-13
Posts: 17

InsertSnippet

Hello Raimund,

I search the whole forum to find extra information for this plugin. The readme.html says: "In order to use your own snippets you have to al least one parameter to your xinha_config:" but...?

I have insert 'InsertSnippet' in my xinha config file:

xinha_plugins = xinha_plugins ? xinha_plugins :
[
  'SaveSubmit','InsertAnchor','ExtendedFileManager','EditTag','InsertSnippet'
];

OK?

but what to do with:

xinha_config.InsertSnippet.snippets = _editor_url+"plugins/InsertSnippet/snippets.php";

I put it in Step 5, but then xinha does not start up (only text in the area).

I don't know where to look.

Thanks and greetings...
Wijnand

Offline

#2 2007-04-01 13:14:38

x-ray
New member
Registered: 2007-04-01
Posts: 2

Re: InsertSnippet

open the insert-snippet.js

goto line 75

change: 'snippets' : _editor_url+"plugins/InsertSnippet/demosnippets.js",
to: 'snippets' : _editor_url+"plugins/InsertSnippet/snippets.php",

now edit the snippets.html like you need it.

Offline

Board footer

Powered by FluxBB