Add BBCode in the site and transform it.
Project description
collective.bbcodesnippets provides pervasive, generic and extensible BBCode Markup integration for Plone.
Functionality
collective.bbcodesnippets replaces BBCode in the whole generated HTML output. BBCode snippets can be placed everywhere in the site.
At transform time at the end of the chain, before or after Diazo (configurable), the output is parsed and all BBCode will be replaced.
The BBCode parser only replaces configured BBCode snippets. At the control panel all registered BBCodes are listed to be activated. By default all codes are inactive.
This package utilizes the excellent bbcode package from Dan Watson to parse and replace. We register all default formatters as named utilities which are used as factories for the formatter using the Zope Component Architecture (ZCA). Custom parsers can be provided by registering an own named utility. Before parsing at transform time new Parser is created using the configured adapters only.
Installation
Install collective.bbcodesnippets by adding it to your buildout:
[buildout] ... eggs = collective.bbcodesnippets
and then running buildout.
Afterwards (re)start Plone, go to the controlpanel and install the addon.
Then there is a conrol-panel to control the allowed BBcodes.
Source Code
The sources are in a GIT DVCS with its main branches at github.
We’d be happy to see many forks and pull-requests to make collective.bbcodesnippets even better.
Contributors
Michael Graf, FH St.Pölten - Idea and Use Case
Thanks to St. Pölten University of Applied Sciences for initial funding.
History
1.0.0a5 (2021-05-25)
Use lxml.html.fromstring for inner HTML parsing to ingest not-so-perfect HTML. [jensens]
Remove explicit order of registration - it has no effect. [jensens]
1.0.0a4 (2021-05-23)
Enable explicit order of registration. [jensens]
1.0.0a3 (2021-05-19)
Explicit load plone.restapi ZCML to have profile available.
1.0.0a2 (2021-05-19)
Explicit load plone.rest ZCML to have “plone.service” defined. [jensens]
1.0.0a1 (2021-05-19)
Fix package configuration [jensens]
1.0.0a0 (2021-05-18)
Initial work [jensens]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for collective.bbcodesnippets-1.0.0a5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be18ede65f82e7aed0853d4a165e9032c8f8d32e82efaba4b5a12b3d8d297008 |
|
MD5 | 9c680c205309b16c2c2e345fcfd1b9d6 |
|
BLAKE2b-256 | 13f5221ad6df68c2433a4c5fdb43246ecb659f48a13e3932716663e971f0c120 |
Hashes for collective.bbcodesnippets-1.0.0a5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15f0115e2fc3b9470ef80c0321082978ed92a38bf868d971e7fa91179aa813c5 |
|
MD5 | a581cdeee79d7a695c206a4463e7eb2b |
|
BLAKE2b-256 | 516ffe4a0c8a35cb431bae4042262bd069d188f2c9f4296f14c132bb69a58245 |