Some HTML tags (e.g. IFRAME) and Javascript in Joomla 1.5 articles are automatically removed when using the WYSIWYG editor - html

When using a WYSIWYG editor in Joomla 1.5 to create website content I am not able to freely insert HTML tags, such as IFRAME as the HTML tags will be automatically removed on saving the article. I can either configure Joomla not to use a WYSIWYG editor which makes editing articles a bit of a pain, or I can force the HTML code into the article using MySQL Query Browser and altering the article content directly in the site's database. Doing this is not only cumbersome but also ineffective, because every time someone edits the article from the Joomla back end WYSIWYG editor, the inserted tags will be removed by the editor again.
Is there a way of inserting an IFRAME (or perhaps JavaScript) into a Joomla 1.5 article, without turning off the WYSIWYG editor or hacking away at the database?

I had the same problem that you are facing. I used Jumi to solve that. It works very well.

Short answer: no. Joomla knows best :P
But seriously, you can turn off the WYSIWYG for just your user. Go to the 'User Manager', select your account, and set the 'User Editor' preference to be 'Editor - No Editor'. That way you can type in whatever tags and code you want, without WYSIWYG borkage. But every other account on the site will still have access to their WYSIWYG's.
Doesn't take too long to toggle the WYWIWYG that way when you need to do a bit of precise HTML/Javascript/etc coding.

Actually, it depends on what you want to put in your IFRAME. If it is a URL, then you can create a "Wrapper" module containing the URL you want. Type a unique name into the "Position" field in the module. Then, you can display the results in an article by inserting the following where you want the results to appear {loadposition XXXX} where XXXX is the unique name you typed into the module's position field.

I think by using JCE Editor in joomla you are able to fix all these problem.

If you use the JCE Editor for joomla It will allow you to customize what tags are allowed. THe default Joomla editor will strip the tags out. I have also ran into issues if you toggle the editor at all it will remove them on submit. I have found the only way to do this is either with a wrapper, or a custom code module.

Related

How to avoid PrestaShop WYSIWYG editor to clear Microdata?

I use PrestaShop to create some CMS pages in HTML. I would like to add some Schema.org structured data into my code, but when I paste the HTML and save the page, all the Microdata disappears. I guess the WYSIWYG editor doesn't allow me to add that.
Example
<div itemscope itemprop="mainEntity" itemtype="https://schema.org/Question">
PrestaShop keeps the <div> and clears the Microdata attributes. Do you know a way to solve that?
Make sure that in your backoffice
Shop Parameters > General "Use HTMLPurifier Library"
is turned off.
This will prevent TinyMCE to remove some HTML content during validation.
If your micro-data content is still wiped, you should either apply some modifications in core during TinyMce initialisation , or (better) develop a simple module that inject your Microdata in CMS pages with Prestashop hooks.
The TinyMCE integrated in prestashop get a lot a limited features in his configuration.
You will need to edit TinyMCe configuration in /js/admin/tinymce.inc.js

Add custom input form in MediaWiki homepage

Where can I put custom input form code in media wiki homepage?
This is so I can modify it into fewer steps for a user to create a new page. The input form will be for entering the title of the new page.
Currently, when adding a page, the user has to search for a page, and if it doesn't exist, it redirects to another page with a link to add the new page. After that it will load the built-in Wiki editor(will also modify this to default to the Visual Editor extension I integrated instead of Wiki editor).
Any input would be greatly appreciated.
There are a number of extensions that can do what you want:
InputBox, is bundled with recent versions of MediaWiki. It is used with Wikimedia wikis, and thus probably very stable.
CreateBox, specifically for letting users create pages
Create Page, more general aproach
Semantic Forms The most fulfledged, but also the most complex, and requires the Semantic MediaWiki extension
You might also want to combine this with some biolerplate extension, e.g. Preloader
As you are posting on SO, I assume that developing your own extension would also be an option. In that case, have a look at the parser functions manual: https://www.mediawiki.org/wiki/Manual:Parser_functions
The file in which i can add/modify a custom input form in the media wiki homepage would be the /rootWikiDir/skins/Vector.php

Using html5 Canvas element in a Joomla Custom Html Module

How can I use a html5 Canvas element in a Joomla Custom Html Module?
Is there an option I am missing? When ever I put the code in the module takes the canvas elements out.
Please Help If you need anymore information please ask.
Thanks!
There are several ways that your HTML can have tags stripped out.
The Editor
The most common is actually the editor you have set up as default. e.g. if you using JCE this is famous for striping HTML because people haven't altered the default "Editor Profile".
In the JCE Control Panel, click on the Editor Profiles button.
Click on the Profile name that the user, usergroup or component is assigned to, eg: 'Default'
Click on the Editor Parameters tab, then on the Options tab and set it up to suite you.
Joomla Text Filters
Unless you're using a Super User account for everyday access (bad idea) you will need to set the user group of your account to have "No Filtering".
In the Joomla! 3.2 from the Global Configuration, click on the Text Filters tab (last one on the right). Check that your users group has "No Filtering" set, see the image below showing the standard test filter settings in 3.2:
When it still doesn't work
Turn off the editor while working on the module, i.e. go to your User profile and set the Editor to "None". Under "Basic Settings" in User Manager:Edit Profile change the Editor option to "None" as shown below:
That way if you have "No Filtering" set, and no editor set you will be dealing with just the text being stored in the database and there will be nothing between you and the database to change it.
If you are trying to add some HTML or Script elements inside module or Article,
Joomla will automatically remove the scripts and tags is that your issue then take a look at below link it may help you.
How to include html or PHP codes into Joomla article
Hope its helps.

Automatically apply tinymce validation to all drupal pages

I happen to have inherited a drupal project where a common html validation error seems to occur on nearly every page. The validation error is so minor and easy, I actually only have to open any page up in the editor and the tinymce wysiwig editor will fix the problem automatically and I only need to save the page. Considering I will be needing to do this 30k+ times to apply it to the entire site, is there any way to have it either applied automatically to all pages or automated? Any and all suggestions welcome to help me speed up the process.
EDIT : Used solution
Since I'm not the most adept at finding a programming solution, I did find an addon for firefox letting me record et loop a series of actions called iMacros. Started it up in 5 different instances of FF and let it running all night and it's half done already. Certainly not the most efficient way of doing things, but may be a solution for those who, like me, aren't as advanced in programming.
Assuming you can loop through the pages somehow i would suggest to build a page where you include the code source into the editor root html element (textarea or whatever). Then after onInit (see the tinymce configuration options for this (setup parameter and onInit) ) you trigger the submit or save button which delivers the page to the server where it gets saved.
The pages textarea might then get filled with the code of the next page and so on...
The important part here is that your serverbackend is able to loop through the different pages and knows which page comes next when receiving the modified/corrected page code.

Inserting select tag in Umbraco?

I'm currently working on a project using Umbraco and the client has asked for a drop-down menu with the states and once selected the cities in that state will be displayed.
When I'm in the text editor, it will save tables, but once I input a <select></select> tag or <option></option> tags and save the file and go back into it my coding will be converted to normal text. It doesnt seem to want to accept or is there a way to insert these, and if there is, is there a way to do it without creating a new doctype? The hours have been budgeted and I'm trying to find a quick fix if possible.
Thanx in advance.
Correction: It doesn't simply convert it to just plain text but the entire <select>/<option> tags will be completely gone and all that will remain is what was between the tags.
You cannot do this in the rich text editor, for this to work you need to create a macro (you have a choice: XSLT / Web User Control or Razor).
In said macro you will be able to render the dropdowns you want, if you're familiar with ASP.NET a user control will probably be most convenient, binding it to a datasource.
But it sounds like you're in over your head, as you haven't yet mentioned how you plan to post and save the form. You really should provide some more details on that.