I guess the add-on has been properly installed: TinyMCE has a new button, the icon of which being {{}} (BTW, no tooltip: too bad). When I click on it, a popup asks me to add a snippet with: "Select content Search :/.snippets" but I don't what to do.
With the following HTML code of a snippet I created: le <span class="snippet-tag snippet-tag-document" contenteditable="false" data-type="snippet_tag" data-snippet-id="91703cee2a2b458dbe0c8103be2651d8">Snippet:[ID=91703cee2a2b458dbe0c8103be2651d8]</span>
the word "le" and the following snippet are not on the same line: I consider this more as a bug than as a feature
Is it possible to use a snippet in a Python script?
That is very old documentation and it describes the non-Plone 5 version of snippets. Best to stick with the docs (sorry, sorely lacking) in the GitHub repo or on pypi for that version. Or if you are able to contribute docs, I will be glad to merge any pull requests!
I wonder if that's a problem with using the span tag ... please file a bug in the GitHub repo[quote="dbitouze, post:4, topic:4399"]
Is it possible to use a snippet in a Python script?
[/quote]
I don't know. We didn't design it to do that. It should be possible, but I don't know how exactly. After all, it's just grabbing a piece of content that lives in the .snippets folder.
That might also need to be filed as an issue. I don't recall now if we'd decided not to create the folder on activation for the new P5 compatible version.