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.
1
vote
1answer
21 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 ...
0
votes
0answers
24 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 ...
2
votes
1answer
50 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?
0
votes
0answers
27 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
0answers
19 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
17 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
27 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
14 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
42 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 ...
0
votes
2answers
47 views
Colorbox module has no effect
I'd like to use the colorbox module to show the images in my nodes which are comming from flickr.
I'm using the flickr input filter which works fine. Now I'd like to get a colorbox to show one image ...
0
votes
1answer
27 views
How to get the standard text format widget for a custom field type?
I've created a custom field that loads content from a given URL. The content is rendered with the given input format. That works fine.
Currently, I just gabe a list of available text input using ...
0
votes
2answers
155 views
Prevent Drupal 7 from auto-caching pages in all translations
After clearing the cache, Drupal generates cached versions of every node/page that gets visited. Which is fine.
However – if I visit the German version of a node/page, not only the german version ...
0
votes
1answer
45 views
Should store input format in the database? [closed]
When using the WYSIWYG editor, should I store not only the text but also the format ("Full HTML"/"Filtered HTML"/...) in the DB?
0
votes
1answer
66 views
Unable to set placeholder on password input
function customization_form_user_register_form_alter(&$form, &$form_state, $form_id) {
$form['account']['pass']['#attributes']['placeholder'] = t('Password');
}
I am trying to set ...
0
votes
4answers
82 views
Restrict access to text formats for certain role
For every user with role company manager i have made tab My company(in user profile) where user can see node_edit of their company(node). And i need to set default format to plain-text and hide ...
0
votes
1answer
149 views
TinyMCE on Drupal 7 adding class to <p> instead of <span>
I have a custom class that I want to be able to add to parts of a sentence using a <span> tag. It's a title field, so I don't want it to be wrapped in a <p> tag. However, TinyMCE insists on ...
1
vote
2answers
65 views
What hook runs on all filtered input text of all filter types?
This is one of those, "Looked everywhere in the API for a hook, can't find it" questions. There must be a hook like I'm looking for, but none of my searches have found anything.
I'm looking for a ...
0
votes
0answers
92 views
Full Html Text format (and wysiwyg) show only for administrator role
I use Wysiwyg module with CKeditor since months and all worked well.
Wysiwyg module is linekd only wit my input-format "Full html" and this is granted to use to my role "Editor". it worked very good.
...
-1
votes
1answer
34 views
Missing 'Input format'
On my inherited Drupal 6 site when I go to edit or add a news story 'Input format' is available for the Teaser, but not for the Body. I would like it for both or if it can only for one, have it on the ...
2
votes
2answers
236 views
Inline image not showing
I have a problem after my successful migration from D6 to D7 where all inline images are not showing. Inline images are the images that are inserted in node body.
Modules being used:
Insert
Custom ...
0
votes
0answers
23 views
Blank Body When previewing Pages
I want to create a new page/blog/etc, and there is nothing wrong. A body area where I can type content is okay, CK Editor modules are okay, and I can insert images, links and everything...
But when ...
1
vote
1answer
233 views
Compelety remove Input format from comment form
I used following code to create a module to remove input format from comment forms. but it doesn't work. is there anything I'm missing or another way to do this ?
<?php
function ...
0
votes
1answer
381 views
Make node/field text input format available to Views
The standard Content list in Drupal 7 (displayed with the Find content menu item) gives me a table of nodes in the system with various attributes, such as the type. I want to add the text type (e.g. ...
2
votes
0answers
81 views
Text comparison rules on node:body:value with input filters
My text comparison rule works like a charm if the user selects 'Plain text'. If they use 'Filtered HTML' it doesn't find a match even though the pattern does exist in the raw and filtered versions of ...
0
votes
1answer
30 views
What would be a comprehensive but safe set of html tags to use with the HTML Filter but compatible Markdown?
I want to use the Markdown filter on my pages, but using the HTML filter messes it up. However I still want to use it. Does anyone have an idea what other tags should be allowed beside these and what ...
1
vote
1answer
200 views
Strange disappearing <p> problem with Drupal 7
In CKEditor, source view, I see <p> tags around my paragraphs. That's great, makes sense. However when I view the node, the <p> tags are gone, replaced with <br> tags, thus killing the ...
1
vote
0answers
114 views
Is there a good way to convert “smart quotes” and curly apostrophes to entities?
I'm building a new Drupal site, and the content authors and editors ared dyed-in-the-wool Microsoft Word users. I've got WYSIWYG set up to force all pasting to be treated as "Paste from Word", so ...
2
votes
1answer
94 views
URL tags not converted to <a> HTML tags
I have been using CKEditor, but didn't like the table editing capabilities so attempted to move to TinyMCE. Having done this, all links now appear as plain text in the following format :
...
2
votes
5answers
646 views
Filtered html ignores extra line breaks
I'm using the Filtered HTML input format without a WYSIWYG editor.
When editing text, if I put some text onto a new line by hitting return, when I save its fine.
However if I add another line (so ...
5
votes
1answer
91 views
Blacklisting specific tags from an input format instead of whitelisting
I need a filter for the "Full HTML" input format that allows me to strip specific tags. I want to allow all HTML tags, except the ones specified in the input format options.
I am using Drupal 7.
0
votes
1answer
61 views
How do you replace text surrounded by a custom delimeter with <span> around it?
Overview
I want to have action asterisks in my posts. Basically, asterisks surrounding certain words. Examples: *gasp* or *giggle*
Simple enough. Now I could type that exactly into the editor but it ...
0
votes
2answers
107 views
Inserting Block with Custom Input Filter Module via Shortcode Causing http 500 error
I have a custom input filter module, and I am trying to figure out why it crashes when I attempt to insert a block into a post via a shortcode. The method works perfectly when I am inserting a string, ...
0
votes
0answers
123 views
BBCode : <span style=“font-weight:bold”> instead of <strong> tag (Filtered html problem)
I've setup BUEditor with BBCode.
For security reason, I want to use "filtered html" input filter.
But I have some problems :
<span style="font-weight:bold"> is used instead <strong> ...
2
votes
1answer
176 views
WYSIWG Improvements in drupalgardens way: How to place input filter selector in CKEditor?
I would like to know how to achieve two improvements in WYSIWYG in the same way drupalgardens does (see image below):
The first one is to place Input filters selector as a dropdown selector within ...
3
votes
2answers
2k views
How do I get line breaks when using Plain Text format?
I feel like this should be reaaaaaally simple, but it's driving me crazy.
I have 'plain text' selected for all my Body elements. I don't want anyone to be able to put in any html at all when filling ...
0
votes
1answer
179 views
Custom tokens and/or text filters for consistent link look?
I have a site with a range of products. In order to ensure an easy input for the content editor and a consistent look throughout the site, I thought I'd make an input filter that would replace any ...
3
votes
1answer
115 views
HTML5 and Full HTML Filter
I have the following markup:
<figure>
<img src="file.jpg">
<figcaption>
<h3>The Father</h3>
<p>Born in 1972, a fisherman by trade</p>
</figcapion>
...
0
votes
5answers
365 views
How/where to change the default size of inline images?
For the life of me, I can't seem to figure out how/where to change the default size of inline images (that is, images that have been inserted into the body by way of the wysiwyg editor's Insert/Edit ...
0
votes
1answer
242 views
Setting text formats programatically
I have defined a new content type, that just has a body field, which I define in my install file:
$type = array(
'type' => 'status_update',
'name' => t('Status Update'),
...
0
votes
1answer
203 views
adding input format for CCK fields in drupal
Is there any way by which I can add a input format for the CCK added Text Fields ?
By default its only there for Body field in any node/add , I want this for other fields to evaluate PHP Code.
3
votes
1answer
537 views
programmatically filter text
I need to display a text and apply the chosen filter to it. The text is saved using the text_format field type.
So I know the original text, I know the chosen format type but I don't know how to ...
0
votes
1answer
161 views
TinyMCE input format is set to “Full HTML” but code is still being stripped
I am trying to enter some HTML into TinyMCE. I know that some input formats can strip code depending on your settings, but I have "Full HTML" selected, yet my code is still being stripped. What else ...
0
votes
0answers
67 views
Exclude string from URL filter
Drupal's url filter seems to be a little too active, as it converts any string that includes an at (@) symbol to a mailto-Link.
Now I'm wondering if there's any trick to exclude a certain string ...
2
votes
3answers
796 views
WYSIWYG and TinyMCE stripping out float: left
I've got the WYSIWYG module installed and the TinyMCE javascript library as well. I've created a text format "Rich Text" which is similar to Filtered HTML but I've added more allowed tags.
I insert ...
0
votes
0answers
256 views
Tokens not working within node and in template file
I created a custom token in a module, which returns a email if from theme settings [zealind:user_email] Then I enabled php filters module so that I can use it in content. I followed this tutorial for ...
4
votes
1answer
120 views
Filtered HTML Text format without an editor
How can I set up the following:
Administrator should be able to use Full HTML with an editor window in Nodes.
Users should be able to use Filtered HTML in Nodes without an editor - just the markup.
...
1
vote
2answers
256 views
check_markup('This is a test', 'plain_text') returns html
var_dump(check_markup('This is a test', 'plain_text'));
OUTPUTS:
string(22) "<p>This is a test</p>
"
Why does it do this?
4
votes
2answers
1k views
Disable Rich Text in Drupal 7 comment field
I have installed CkEditor for drupal. But it is showing it for comment form also.
I don't want it to be shown. I dont want the user to have an option to select either.
I just want them to have plain ...
-1
votes
1answer
90 views
Drupal 7 text boxes on my site are inserting unwanted characters [closed]
I am novice at this but managed to create a website for my daughter that worked reasonably well until recently. There are several fields where plain text is to be inserted and this was fine but ...
0
votes
1answer
185 views
Why my hook_filter not work in Drupal 6?
I'm having a hard time trying to make my hook_filter work on Drupal 6.
Here's my filter function.
function arb_question_filter($op, $delta = 0, $format = -1, $text = '') {
...
