Hi Bart,
You're running into a feature, not a bug. (:
Apostrophe filters out most HTML tags to prevent users from
accidentally trashing their pages (which, without this feature, they
do relentlessly by pasting layout-busting markup from Word etc).
The general idea is that you should be using our media plugin, not raw
img tags, to alternate media slots with rich text slots in an area.
This approach is friendly, convenient and safe.
But if you really want to allow img tags via "edit source," it's
possible to do that. You would need to set app_pkToolkit_allowed_tags
to the list of tags you want to allow. You can do that as a string:
all:
pkToolkit:
allowed_tags:
<h3><h4><h5><h6><blockquote><p><a><ul><ol><nl><li><b><i><strong><em><strike
><code><hr><br><div><table><thead><caption><tbody><tr><th><td><pre>
Or you can use an array of tag names, without the angle brackets.
By default, the HTML filter allows the use of the src attribute if you
have decided to allow the use of the img element.
For more information check out pkHtml::simplify in
pkToolkitPlugin/lib/pkHtml.class.php.
In the current svn trunk version, you can also override the list of
allowed tags for a particular pk_context_cms_area or
pk_context_cms_slot call by passing an allowed_tags option (and
allowed_attributes, and allowed_styles, etc).
> --
>
> You received this message because you are subscribed to the Google Groups "pkcontextcms" group.
> To post to this group, send email to
pkcont...@googlegroups.com.
> To unsubscribe from this group, send email to
pkcontextcms...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/pkcontextcms?hl=en.
>
>
>
--
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com