Name | Last modified | Size | Description | |
---|---|---|---|---|
Parent Directory | - | |||
InsertSnippet.css | 2022-11-26 11:10 | 1.2K | ||
demosnippets.js | 2022-11-26 11:10 | 1.5K | ||
img/ | 2022-11-26 15:06 | - | ||
insert-snippet.js | 2022-11-26 11:10 | 2.1K | ||
lang/ | 2022-11-26 15:06 | - | ||
popups/ | 2022-11-26 15:06 | - | ||
snippets.html | 2022-11-26 11:10 | 1.0K | ||
snippets.php | 2022-11-26 11:10 | 508 | ||
Insert HTML fragments in your document.
In order to use your own snippets you have to al least one parameter to your xinha_config:
xinha_config.InsertSnippet.snippets = _editor_url+"plugins/InsertSnippet/snippets.php";
The path above indicates the use of the provided backend. This parses a file that contains the snippets and should have the following format:
<!--Snippet ID--> Snippet content <!--/Snippet ID--> ...and so on
You can use the snippets.html in the plugin folder or tell the backend where to find the file like this
with (xinha_config.InsertSnippet) { <?php // define backend configuration for the plugin $backend_data['snippets_file'] = '/file/containing/snippets.html'; require_once '../contrib/php-xinha.php'; xinha_pass_to_php_backend($backend_data); ?> }
Raimund Meyer (xinha@raimundmeyer.de)