Loading...
 
Skip to main content

HTML plugin does not work in articles

Status
Closed
Subject
HTML plugin does not work in articles
Version
12.x Regression
Category
  • Regression
Feature
Article
Resolution status
New
Submitted by
Jean-Marc Libs
Lastmod by
Jean-Marc Libs
Rating
(0)
Description

This was discovered on a Tiki12 upgraded from Tiki9 using wysiwyg, but the issue is also there with no wysiwyg.
I suppose we should first focus on the non-wysiwyg issue and there are chances it will also be solved in wysiwyg. So no more about wysiwyg

First, I remind how things should work, as all is fine in wiki pages

In HomePage, insert
{HTML()}<iframe src="http://www.musarama.org/en/widget/slideshow/key/269c31354b3770e5e96e8eccb1fec97ced34f0fc0b" width="480" height="300" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>{HTML}

Approve → OK
This works fine as I understand it should, and as it worked in Tiki 9. Meaning there is a nice iframe with images in it.
See: http://jyhem-9952-5156.show.tikiwiki.org/tiki-index.php

Second, I show the problem

Create new article and put inside
{HTML()}<iframe src="http://www.musarama.org/en/widget/slideshow/key/269c31354b3770e5e96e8eccb1fec97ced34f0fc0b" width="480" height="300" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>{HTML}
→ It asks for validation but on viewing, the content of the HTML plugin is wiped!
I see it is wiped by editing the article, and I see the HTML plugin is empty.

I try again, checking ''Allow full HTML (Keep any HTML tag.)
If not enabled, Tiki will retain some HTML tags (a, p, pre, img, hr, b, i).'' but that seems to be ignored.
In re-editing, it does not even stay checked.
Anyway, that should not be the way to do this. HTML plugin should not require to check Allow full HTML.

I attempt to insert my html code outside the HTML plugin but it still gets stripped out, even when checking Allow full HTML.
See: http://jyhem-9952-5156.show.tikiwiki.org/tiki-read_article.php?articleId=1

So right now there is no way to insert stuff in articles like they could 😑

Solution

Revision: 50124
http://sourceforge.net/p/tikiwiki/code/50124
Author: jyhem
Date: 2014-02-27 18:03:21 +0000 (Thu, 27 Feb 2014)
Log Message:
-------
FIX Fixes issue wish5156 (html plugin in articles) caused by revision r48131 (thanks jonny for the hint)

Importance
10 high
Priority
50
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5156
Created
Wednesday 26 February, 2014 09:57:25 UTC
by Jean-Marc Libs
LastModif
Friday 07 March, 2014 00:35:09 UTC


Show PHP error messages