An input format is an ordered collection of filters. Any text that is being displayed to the browser should be run through the filters in an input format first.

learn more… | top users | synonyms

0
votes
1answer
12 views

Ckeditor can not create new profile with input format

I've already a profile with input types but I can not create another, even when I am cloning the profile with input types. These are my text format, and I using administrator user. This is the list ...
0
votes
1answer
16 views

GTM container in block appears as regular text even though set to be Full-HTML

I have opened a block at the highest region of my site and have putted the GTM-container code inside, at Full HTML input-format. Yet the container code appears as regular text ...
0
votes
1answer
19 views

Find out which nodes use a specific filter

How could I find out which nodes actually use a specific filter? My nodes use an input format that has the Bbcode filter enabled. Now I need to know which (of the several thousand) nodes use BB code, ...
0
votes
0answers
29 views

Programmatically get input format in field template

We change some output in our field.tpl-files for body fields, depending on the input format that was used on the node (which itself depends on the user being able to modify it). Now this worked by ...
1
vote
2answers
152 views

Display HTML code in a Drupal field as plain text

I am using Drupal as a blog for posts about programming. Naturally, I have to post code samples. When I post the code samples, Drupal renders them as actual HTML. How can I stop this from happening? ...
1
vote
2answers
17 views

Practical solution to get an overview of input formats in use

I'd like to clean up unused text formats on some D7 sites. So I need to know which formats are not used. I tried using VBO for this, but there is no field Content: Text format I can add there. What's ...
0
votes
2answers
25 views

Is there an Input Filter without built-in restrictions?

Is there an Input Filter without built-in restrictions? The built-in Drupal filters and some of the other filters I have checked seem to come with their built-in restrictions, eg The Drupal's own ...
0
votes
1answer
30 views

Does the Full HTML format allow all tags, and is there an Input Filter without built-in restrictions?

Does the Full HTML format allow all tags, without any restrictions at all? I an not quite sure but it seems some input filters have other restrictions in addition to what their options dialogs allow?
0
votes
2answers
48 views

Does Drupal strip out style and span tags?

I was trying use span and style tags in pages, rather than in CSS and it seems that Drupal is configured to strip them out whether the input format is Filtered HTML, ie they are applied to Full HTML. ...
0
votes
1answer
12 views

Drupal 7 trim user input and other checks to prevent security issues

What is the recommended way in Drupal to perform trim and other checks before accepting user input to avoid sql injections and other similar security issues? Thanks.
0
votes
0answers
17 views

Rebuild all Drupal 6 teasers

I need to regenerate (or rebuild) the node teasers for a Drupal 6 website. There are a couple of examples of how to to this at https://www.drupal.org/node/325832. The first example affects all nodes, ...
2
votes
1answer
68 views

How to insert ads in node bodies?

For WordPress there is e.g. the Quick Adsense plugin which makes it easy to insert ads inside articles before/after specific paragraphs. I would like to have something similar for Drupal. I started ...
0
votes
1answer
26 views

Change text format used for text field when displayed in a view?

I have a content type with a text field that may contain a token from the Media module (that WYSYWIG inserts). This token is typically transformed into HTML by enabling a specific filter for the text ...
0
votes
1answer
28 views

Regarding Filter HTML input option [duplicate]

I want to allow one more tag in Filter html Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>. I want to add ...
0
votes
0answers
49 views

How do I insert an inline image uploaded into another node?

The following scenario: D6, CCK, Filefield and Imagefield. The image is uploaded into node "foo". This image is supposed to be inserted inline into the body text of node "bar". I'm neither using ...
0
votes
0answers
83 views

Programmatically change input filter of term description on taxonomy_form_term

I couldn't find anywhere on the admin UI where I can change the input filter for term's description field. I have tried using hook_form_alter, but wasn't successful. function ...
1
vote
1answer
81 views

Changes to Input Formats not saving: Default instance field is required

When trying to make any changes to any text format, when I click "Save" Drupal returns an error message: "Default instance field is required." and the changes are not saved. Screenshot: ...
0
votes
0answers
33 views

use “no cache” but input filter seems to be cached in Drupal 6

I am trying to display a add to cart button and it only rarely works. It seems to work when the cache is cleared and then not work. I have added the no cache option but this doesn't seem to do ...
3
votes
1answer
407 views

How can I remove emoji from all user input?

It looks like iPhone emoji are not currently supported in Drupal 7 on MySQL. When I try to save a node containing an emoji (I 💛 U!) in the database, I get an SQL error: PDOException: ...
1
vote
1answer
57 views

Select list with input fields

I would like to have the following field widgets: I would like to give the user the possibility to give in 4 nicknames and select the default one that will be shown to other users. Is there a ...
0
votes
2answers
273 views

Prefix html before radiobutton (input field)

I'm looking to insert some extra html before an input radio button. This is my html now: <div id="edit-field-geslacht-und" class="form-radios"> <div class="form-item form-type-radio ...
0
votes
1answer
55 views

Inputs for “am” and “pm” get messed up on the arabic side when editing content

When creating/editing a node on the english side all works ok but when this is done on the arabic side it breaks up the am/pm form. The markup values also change unlike on the month or hour fields. I ...
0
votes
0answers
56 views

drupal_add_js in input filter

I have a module that provides an input filter for Drupal 6 and 7. It renders some elements using a (heavy) JavaScript module that I don't want to include on every page. In Drupal 6 the input filter ...
0
votes
0answers
14 views

Can I place a variable number of photos in one area and have each photo sized differently depending on the number of pictures?

I saw that views has the functionality of acting when an image has not been uploaded. Is there a way to make it so that images are formatted differently depending on the number of images uploaded? The ...
0
votes
1answer
115 views

Saving the content from a Textarea dont works

An Textfield within my Custom Content Pane works fine. An Textarea incl. input-filter ('#type' => 'text_format',) will not be saved. <?php function text_edit_form($form, &$form_state) { ...
0
votes
0answers
39 views

Input format “Full HTML” and body is null

In my Drupal 7 web site I have a problem with Input Format "Full HTML": when I choose it for node's body, no body is show when I see the node. No problem in node/X/edit. I use ckeditor (wysiwyg ...
-3
votes
1answer
77 views

Change value input field according to other fields

I have 10 input fields when you create a product (= node). I have an input field amount, price & reduction and sell price. So when the field amount, price & reduction are filled in I want to ...
2
votes
0answers
32 views

How to prevent html conversion of the default value translation of a field?

I have a node field which text format is set to markdown. When I translate the default value with the 18n field module using the markdown syntax, the default value is converted to html in the node add ...
4
votes
2answers
521 views

How to find all inputs that make use of the php input filter to fully disable the php filter module?

I want to disable the PHP Filter module on a large website, but going through all nodes, blocks and other fields where you could make possible use of the php filter would take eons. Is there a simple ...
0
votes
2answers
235 views

How to enable Text formats after disabling it in Drupal?

In attempting to get pictures inline with text, I did the following: Configuration>> content authoring >> text formats>> and disabled Full HTML and Filtered HTML formats. This ...
0
votes
0answers
93 views

How can I prevent Drupal to add extra <p> tags to body field?

I have a content type with body field. I have created few nodes of this content type. When I edit them, I see that there are extra <p> tags have been added to the text of body field. I checked ...
1
vote
1answer
43 views

How do I remove text format information from the bottom of my text areas

I have a content type which all of my users can create instances of. The last text area has a section listing the particulars of the text format. I would like to disable this area so that the test ...
0
votes
3answers
283 views

How to hide text format options in node view with in place editing drupal 7

I am using drupal 7 version with in place editing module editablefields I was able to hide the text format options in edit mode with simplify module but in node view mode are still there. Please, do ...
0
votes
0answers
58 views

New field widget (for custom field type) does not save data

I am trying to make my own field type. I order to do it I modify field_example from drupal examples. I added new widget_form (declared also in widget_info). The problem is, value is not saved in the ...
0
votes
2answers
229 views

How do I attach a link or image to a radio/select input element

I want to attach an image-link to every input element. Is it possible to do it on entity fields or on webform fields? I prefer to it on server side.
2
votes
4answers
327 views

How can I use Javascript (Google Analytics) in my “Rewrite Results” in Views?

I'm trying to track downloads as events in Google Analytics for file fields. The links are displayed in Views using "Rewrite results." I tried the following: <a onclick="var ...
0
votes
1answer
21 views

Is there a module for creating images and labelling and placing them in a document?

I am looking for a module which allows me to place images with additional information to the text of a page using a filter connected to the image's node id. I need a content type with something with ...
0
votes
1answer
50 views

I'm unable to select and saveany text filters except for “Filtered HTML”.

I've tried to edit a field in a few content types to set the filtered text format to something other than filtered html, but after I save, it has no effect. I go back to the content type, and it's ...
1
vote
0answers
271 views

Html tags get stripped in full html when “Correct faulty and chopped off HTML” is on

All my html tags get stripped when I input html in "FULL HTML" mode. I have tried the simplest correct html I could think of: <a href="http://www.w3schools.com">Visit W3Schools.com!</a> ...
0
votes
1answer
48 views

Wyswig editor not showing to authors in Full HTML mode for Authors

I am using wyswig with tinymce 3.5 for my drupal site. The editor is not working for Authors in FULL HTML mode.it is not showing any action after changing it to plain text or full html. I have ...
1
vote
1answer
54 views

How to change a fields text_format for admin users, and show a plain_text for anonymous users?

When a node with body text format as plain_text is posted by anonymous user , how do I change it to full_html when being edited by admin or authenticated user? Is there anyway I can edit body fields ...
1
vote
1answer
185 views

A user field's text format defaults to “- Select -”, how do I force it to an allowed option?

I have added a field, "Bio" to the user profile. All user roles have permissions for "Filtered Text", and the field text format settings are limited to "Filtered Text" only, with override default ...
1
vote
0answers
259 views

how to change the size of an exposed filter autocomplete form?

the source shows: <input id="edit-field-location-taxonomize-terms-tid" class="form-text form-autocomplete ctools-auto-submit-processed" type="text" maxlength="128" size="60" value="Germany" ...
1
vote
2answers
1k views

How do I prevent CKEditor 4 from stripping Google AdSense asynchronous tags?

For whatever reason, CKEditor 4 is stripping Google AdSense asynchronous tags from my Full HTML text format. What starts as this (placeholders substituted for IDs): <script async ...
1
vote
2answers
49 views

Custom filter disabled after approximatively 45 minutes

I am developping a filter to render equations in nodes as images from LaTeX code using mathtex library ( http://www.forkosh.com/mathtex.html ). The filter works quite well, my filter is active, the ...
-2
votes
1answer
154 views

Filter out script tags in a view but leave link (from user input)

Users of my site will enter their twitter widget code into a field for their profile: <a class="twitter-timeline" href="https://twitter.com/ussername" ...
1
vote
3answers
1k views

wysiwyg ckeditor inline styling not working

I'm using wysiwyg api with ckeditor, but I can't make it to use inline styles like when I use indent from editor, it actually drops the style (which is margin-left) in output. it's not an override, it ...
0
votes
1answer
113 views

Is there an input filter to add the class clearfix to all <p> tags?

I have a lot of inline images in my content. Most of the time I want to have some sentences and an image grouped together. To get a nice layout I have to mannually add class="clearfix" to all ...
0
votes
1answer
122 views

Drupal 7 inserting space before inline HTML tags upon rendering

Whenever I try to use <a>, <em>, <sup>, or <sub> tags (or probably any other inline tag), Drupal inserts a space before the HTML tag. This does not happen within the node but ...
1
vote
0answers
31 views

Is there a filter input to properly embed MP4 to a browser?

I'd like to use input filter emfield to allow users to embed video content (local on server) but can't seem to find the proper syntax for this input filter. Can anyone point me to an online example? ...