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

4
votes
2answers
76 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
26 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
26 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 ...
0
votes
3answers
23 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
19 views

(simple?) new field formatter (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
30 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
113 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
19 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
23 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
77 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
21 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
31 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 ...
0
votes
0answers
25 views

Custom input form element for coordinates?

I have a content type with 4 integer values (coords x,y and size w,h ). I'm new to drupal, but not to Webdev in general, so I started googling around. What I found is the Forms api, but that only ...
1
vote
1answer
40 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
68 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" ...
0
votes
1answer
226 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
45 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
81 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
2answers
441 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
65 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
76 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 ...
0
votes
0answers
114 views

Node body format constants

I recently had to migrate and combine node bodies from Drupal 6 to 7. I modified field_data_body and field_revision_body correctly - all the data was being loaded, verified via devel module and some ...
1
vote
0answers
24 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? ...
1
vote
1answer
38 views

Is there a better way to get a uid in a block than using Input Format PHP?

I need to make a direct link to page which needs the uid in the URL. Can someone suggest a better way to do this in a block? Does Input Format PHP code open some unnecessary attack vectors? Are ...
0
votes
1answer
121 views

how to assign different Text formats for each Long Text fields?

In my node creating form i have two Long Text fields, they are: Article Lists And i have created two Text Formats they are: Article Lists Now, is there any Drupal way to assign: Article ...
0
votes
1answer
776 views

How to convert xml into array in php? [closed]

I want to convert the XML structure below into a PHP array. <BillingApplyRq> <FatoryId>xxxxxx</FatoryId> <TotalNum>2</TotalNum> <Records> ...
0
votes
0answers
52 views

text field with 3 input values and 2 of them disabled/uneditable with a default value

So, I'm trying to add a phone number field to user accounts. I want the user to be able to see 3 input fields for the phone number, where the first two fields would be the country code and extension, ...
1
vote
0answers
13 views

Input Filter for only Blocks

i want to set input filter for blocks to only allow plain text, but on nodes I want to only allow full html how do i do this?
0
votes
0answers
47 views

CCK fields have no CSS classes in Feeds import, but on node_save they appear

I have a working Feeds Importer that fetches in some content from another website. It is attached to a Users profile and each user can specify there own URL for the feed and it updates part of their ...
2
votes
2answers
65 views

Disabling Wysyig profile profile for particular content type

I am using CKeditor with wysiwyg profile . I want to disable this Wysyig profile for a particular content type. cant find a better way. please help me out with any module if its there or any ...
0
votes
2answers
103 views

Drupal places a <br> after text automatically?

I have the below code, however when I place it within Drupal 6, Drupal places a after the text 'Coordinator', see second code insert for the firebug info. I am not sure where this is coming from? ...
0
votes
1answer
127 views

TinyMCE not appearing on custom form

I am creating a custom form and have run into a problem. I'm using the WYSIWYG module and for some reason the text areas on this custom form don't show as rich text editors (tinymce shows on other ...
0
votes
0answers
315 views

How to convert bold to strong, italic to emphasis on pasted text?

I'm using Paste Format to clean up all text pasted into CKEditor (setup with WYSIWYG API), and it does a great job at this. Both the text format for users, and the text format that pasteformat uses ...
3
votes
1answer
44 views

Is there a module that creates an input filter to convert text to the ASCII character-set?

I have a textarea on a content type that needs to be converted ASCII character-set. Is there an available module that adds a input filter for this? This field needs to be fed to another platform with ...
0
votes
0answers
45 views

Google Prettify Not Working

I'm trying to get a setup similar to the one described in Markdown and Google Prettify working but I'm having some trouble with the Google Prettify module. I did have the same problem as that poster ...
1
vote
1answer
124 views

Adding missing Input Formats after Minimal Install

After a minimal install (v7.22) I've only got the 'plain text' input format and am missing the 'filtered HTML' and 'full HTML' formats. Is there a way to have just the missing formats installed or do ...
2
votes
3answers
298 views

What can I use to layout the content type form input when creating content?

I have created a content type with about 15 fields. I'd like to improve the layout of the form for creating content of this content type. Currently all the input fields are listed one after the ...
0
votes
1answer
297 views

WYSIWYG editor not displaying buttons and plugins

I'm new to drupal and have not found an answer on SO yet. I've updated to drupal 6.28, not ready to update to D7 yet, and the WYSIWYG and TinyMCE are not displaying. Also I can't click/unclick ...
0
votes
2answers
254 views

Use mytheme_preprocess_block() to display HTML (icon fonts) in block titles

Unfortunately, HTML commands in block titles are not being rendered. I would like to be able to add icon font symbols to my block titles by adding comands like <i ...
1
vote
1answer
214 views

How to install a text filter for plain_text input format

The users at my Drupal 7 website discuss a card game in plain_text comments and I'd like to format the hearts and diamonds characters by red color. Based on the Examples module recommended to me here ...
-1
votes
2answers
97 views

Access input format based on user role

I have the Developer user role which should only access the developer_html input format. I am trying to grant the necessary permission with user_role_grant_permissions(). I got this piece of code ...
1
vote
1answer
50 views

How to order input fields?

For displaying a content, I can modify the fields order using display and field weights. However, in a node/add/content-type page the input fields doesn't obey the weight given to the display. How ...
1
vote
2answers
197 views

Unable to use a hyphen in a Drupal 7 text field

I've got a simple field of type "text", widget = "text field" (Drupal 7). I am able to use special characters like &(%, but when I try to type a hyphen, there is no result. I can use a rich text ...
3
votes
2answers
994 views

How do I programmatically change the body text format on the page content type to full HTML?

I have a custom install profile and I must programmatically change the body text format on the page content type to full HTML. However, I didn't manage to find how to do it. How can I do it?
1
vote
1answer
213 views

How to show html <input> marks to Views Custom text - field?

I need to put < input > - html tag to my Views Custom text field, but it wont show up? Somehow these codes will be disabled? What I need to do? I tried to find solutions from web, but I didnt ...
2
votes
1answer
45 views

Can I control Input Type by Field?

I have a node type with multiple text fields. The majority of these are designed to fit very specific templates, and have fixed height and width, and are generally quite small. The full CKE interface ...
0
votes
2answers
27 views

How do I set the text format used in a message (from the Message module)?

I'm using Message on a site that has both the Filtered HTML and Full HTML text formats. By default, Message appears to use Filtered HTML, but I would like to use Full HTML instead. However, I ...
1
vote
0answers
108 views

How to set a text format to a views fields

If you add a content:body field to a view, you got several formatter options: default, plain text, trimmed, summary or trimmed. But is there a way to apply regular text filters? I stumbled upon this ...
0
votes
0answers
16 views

Adding Input to Logged in User Interface Customize Look

With Drupal 7, can I add the ability for the logged in user to update and save a few form fields that then populate a list below the form? They could then edit / delete entries? Is there a module ...
1
vote
1answer
166 views

Adding text to a field before save (Drupal 7)

I run into a situation where I need to wrap text inputted into a field before it is saved. I'm not sure the best way to do this, seems pretty straightforward but I'd like to find the "recommended ...