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 (1)

1
vote
1answer
19 views

CKEditor removes HTML/CSS when switching to plain texteditor and back [duplicate]

My CKEditor seems to remove formatting in a table when I switch from plain text editor back to rich text editor even though the additional formattibn was added in the rich text editor - it seems to ...
1
vote
1answer
18 views

A error creating filter - filter tips

I want to create a filter text module for drupal 8. emtfilter/src/Plugin/Filter/emtfilter.php /** * @file * Contains \Drupal\emtfilter\Plugin\Filter\emtfilter. */ namespace ...
0
votes
1answer
28 views

Set class to an input with twig

Hello i am working on theming for Drupal 8 using twig My question is : I want to assign css class to each input swicth the type of the input exemple <input type='email' class='email_cls'> ...
0
votes
0answers
17 views

How to use FilterProcessResult::createPlaceholder (#lazy_builder) in an input filter?

The FilterProcessResult::createPlaceholder method suggests that I can set a PHP callable that will allow me to return a render array. However my callable is not being called when visiting a node using ...
0
votes
1answer
43 views

Is there a way to set only the “Full HTML” input format for the administrator role?

A plain Drupal 8 installation set the following input formats for the administrator role it creates: Basic HTML Restricted HTML Full HTML The first one is assigned to authenticated users; so, I ...
1
vote
0answers
73 views

Autosubmit exposed filter in Drupal 8?

Is it possible without change in core files to display exposed filters without "Submit" button and with autosubmint functionality? I mean autosubmit form, not autocomplete.
0
votes
1answer
37 views

Wrap <div> inside <a> tag

This is valid HTML5. Yet Drupal 7 seems to ignore it. This is what is entered into the node (using FULL HTML and no WYSIWG) <a style="display:block; height: 50px; width: 200px" ...
1
vote
5answers
61 views

Remove Format Options / Guideliness From Comments Textarea? [closed]

How can I remove Format Options / Guideliness from the Comments textarea in a Drupal 8 theme?
0
votes
1answer
29 views

Pathologic relative path on multisite

Old multisite subsite relative path to image (in block/Full HTML with CKeditor and on localhost/XAMPP): /sites/site1.localhost/files/image.png New multisite path (what I'm trying to achieve): ...
0
votes
1answer
16 views

change RegEx in filter_url for text field

I have nodes with text field containing URLs. The content is imported from XML file. The URLs are converted to links with drupals filter system, which works fine for most of the links but not all. I ...
0
votes
1answer
35 views

How can I make Drupal stop adding <p> tags in textareas?

For a current project I have a content type’s textarea set to Full HTML. But where I’ve added a <span> tag, Drupal will go ahead and enclose it within a <p> tag which is definitely not ...
0
votes
1answer
15 views

Article content special characters

This problem is node titles and content text. ' character shows like this mark. Poland characters there is only ? characters. Example: ŁOŚĆ shows ???? But breadcrumbs shows ' character like this: ...
1
vote
1answer
52 views

How to hide the text formats help text in Drupal 8?

I want to hide the description of the text format under the "Comment" box which says: No HTML tags allowed. Lines and paragraphs break automatically. There are a variety of ways to do this on ...
0
votes
2answers
24 views

How do I create or modify a custom filter?

I'm following the docs here to create a custom filter. The first sentence says: Go to Custom Filters (/admin/settings/customfilter) (6.x & 7.x) However, that link just redirects me to the ...
0
votes
2answers
22 views

Toolbar to insert HTML tags while editing content

This very site features a neat toolbar just over the textareas in forms, where clicking on "B", for instance, will spawn **strong text**, abstracting away the need to know Markdown. Is there a way to ...
0
votes
3answers
56 views

Ckeditor changes <button> tags to <p> tag

Trying to get a button working in content item but ckeditor won't let me. I tried pasting in source. But when toggling back and forth bewteen source and rich text editor the html changes. Goes from: ...
1
vote
1answer
15 views

How can I sort taxonomy term using attachment in drupal view

I would like to sort taxonomy term using attachment in view like this (A B C ...). When I created sort for Taxonomy term using contextual filter, the Alphabetical(radio button) was disabled under ...
0
votes
0answers
16 views

Saving meta-data in Filter::prepare()

I'd really like to save some information during the filter plugin's prepare() step (which runs before all the other filters process it) that will become available in process(). Trying to give a state ...
1
vote
1answer
112 views

Why does the php code entered via my content editor not get executed and shown within comments only?

I want to use php code inside my content editor I already enabled the PHP Filter from module then selected Text Format : PHP code and "PHP evaluator" option is on but still it's not working I have ...
0
votes
1answer
36 views

Text format field missing for minimal installation

I installed minimal version of latest stable Drupal 8. It does not include any HTML text formats so I had to add my own custom Full HTML text format next to default Plain Text. It also doesn't ...
0
votes
1answer
132 views

How to use stye attribute in custom block markup?

I'm developing a custom block in Drupal 8. In my build() method I've got: $progress_markup = array( '#theme' => 'progress_bar', '#percentage' => $registration_percentage, '#message' => ...
1
vote
0answers
51 views

CKEditor image properties missing using Image resize filter with media 2, WYSIWYGs

The Ckeditor image properties is missing. I have checked the following: Clear the cache Alter the order filtering according to the image resize filter recommendations. recommendations for ...
0
votes
1answer
18 views

How to filter for a Field Collection in a View

I have a View of Field Collection fields. The Field Collection is composed of field 1and field 2. The Field Collection is associated, as a single field, to a content type. If I filter the View by a ...
0
votes
1answer
34 views

Convert links in content to internal form?

If I create a hyperlink inside a text field (such as node body) with an internal path uri such as "node/1234" or "index.php?q=taxonomy/term/5678", then I can use an input filter such as pathologic to ...
3
votes
1answer
80 views

How to programmatically access the allowed HTML tags in Filtered HTML

A bit of an oddball question. In Drupal 7, I have a comment form page that is required to show the allowed HTML tags available to users. The default list has been added to over time so now I have ...
0
votes
1answer
43 views

How to increase Views exposed filter character limit?

I'm trying to enter roughly 500 characters into an exposed views filter but the problem is that it is limited to 128 characters. I've read something about form_alter but nothing I do seems to even ...
1
vote
1answer
24 views

altering user tag input

I have a content type that allows users to make their own tags, for me to be able to properly search through these tags I need them to be in a specific format. Rather than burden users with my strict ...
1
vote
1answer
30 views

htmlLawed in text format corrupts Scald insert in CKEditor module

I have htmlawed text format filter. When I enable it for any filter that it is used by any CKEditor profile, it causes corruption for inserted Scald atoms in the CKEditor. In other words, the ...
0
votes
2answers
44 views

Approach to custom advanced search box

I have a custom search form, made with Drupal Form API. It uses ajax, autocomplete, and some other properties defined in the built $form. I use the data sent from the form to feed a views_embed_view ...
1
vote
2answers
30 views

Creating a view of content that is filtered by the email of the current user

How can you create a view of content in a specific node type where there is an email address that will correspond with the email address of currently logged in user's email address? The content is not ...
0
votes
0answers
9 views

Incomplete words searchs in Contextual Filter

I have a View with a Contextual filter. If I use a Content field, and provide the View with the filter, only exact matches will appear. For example, field title, and I introduce "shoe", only those ...
2
votes
0answers
37 views

How can I make a node-specific variable available to me using variable_get() within a block?

I am using PHP code in a block with the PHP filter module. I am attempting to render an image within this block and the image rendered should be dynamically determined and specific to the content ...
0
votes
0answers
30 views

Direct db_query vs. Views query + views_query_alter - Drupal 7

I have a search-based website. It contains several search criterions which can be a little complex or convoluted. I have migrated all original client's data into Drupal nodes and taxonomies. Now my ...
1
vote
1answer
73 views

How can I limit filter to child terms of selected parent in Views?

I have a View that I am using to allow users to search for nodes on my site, all nodes have a category and a subcategory. I have two filters in the View, call these Parent Term filter & Child Term ...
0
votes
0answers
31 views

Dependent exposed filters and taxonomy level Drupal 7

I have an exposed filter in a View. There you must select Brand of car. The taxonomy vocabulary is Cars, and has all brands as parents and all models of car at the second level under its mother term. ...
0
votes
0answers
24 views

Check_markup messes up urls/links

I'm using the check_markup function when printing results from a custom textarea field. The issue I'm having is with urls/links. If an url contains the scheme (i.e http.www.example.com) the output is ...
1
vote
1answer
38 views

Filter under condition based on value checkbox of current user profile

I use Views 3.x and Views PHP module. The task. Make Views filtering criteria that would make two different actions, depending on status of checkbox (TRUE or FALSE) of current user's profile. ...
1
vote
3answers
135 views

Filter Entity reference based on attribute

Here's my situation: I have a "Project" content type. I want to be able to add employees to a project based on their role with a select or multi-select drop down widget with unlimited number of ...
1
vote
1answer
132 views

How to programmatically change settings of input filters and activate them?

I'm looking for a way to programmatically change the settings of an input filter and activate it in Drupal 7. Let's take the Footnotes module as an example: It adds a new input filter that can be ...
0
votes
1answer
38 views

How views autocomplete expose filter open new page?

I have content type FAQ, having field title and description. I have created views auto complete expose filter using the title field of type FAQ. My query is when I will be searching title in the ...
0
votes
0answers
16 views

file upload not showing when error on form

I have a cck field file that is upload maximum 3 files in my form as show below. but when i upload files with filling all information in all fields in form then working porperly like show below. ...
1
vote
1answer
40 views

How do I enable the PHP filter only for webforms?

How do I enable the PHP filter only for webforms, and not other content types?
0
votes
1answer
37 views

Callbacks order in Drupal 7

I have 2 modules (filters): html_pre_filter and syntaxhighlighter. syntaxhighlighter_prepare_callback executes before html_pre_filter_prepare_callback. How to reoder them? I tried this function ...
1
vote
1answer
29 views

Expose a view filter that lists usernames of a specific roll in a roll down menu

I have a view on one of my sites that list a table of content that is connected to (entity reference) a user with a specific role. Is it possible to make an exposed filter that lists all users of ...
1
vote
1answer
59 views

How can I avoid this markup is filtered out from my block?

I generated a widget on pinterest. The result is the following: <a data-pin-do="embedPin" href="http://nl.pinterest.com/pin/1438168111370/"></a> <!-- Please call pinit.js only once per ...
0
votes
1answer
60 views

Add <style> element to node body field via WYSIWYG

I am working on a project where the admin wishes to be able to insert a element into a node's body field. The site makes use of TinyMCE editor (wysiwyg module) to edit text area fields. Currently ...
0
votes
1answer
20 views

Return webform in a node

I have a custom filter added for a content type 'sample'. On selecting the custom filter for the node body, it checks for webform tokens like [webform:1234], by exploding it checks whether it is a ...
1
vote
1answer
42 views

HTML in square brackets -> output as normal HTML

We do import (using Feeds_ex) some data into Drupal (we do not control data-source we use to import data) and these data contains HTML in a brackets. so far I have found these 3 brackets: 1. [b]bla ...
3
votes
1answer
65 views

Create a permanent list of a content type

I have a content type named "clients" which can be filtered within a view and all can be selected using bulk operations. What I would like to do is take the filtered list in the view and copy it to ...
0
votes
1answer
14 views

Why can't I see the settings for the customfilter module in the Drupal admin?

I'm following this tutorial to add a custom filter using the Custom Filter module. I've installed and enabled the module. However, when I try to navigate to /admin/settings/filters like it suggests, ...