Quantcast
Channel: Question and Answer » input-formats
Browsing latest articles
Browse All 27 View Live

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...

View Article


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...

View Article


Ckeditor changes tags to 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:...

View Article

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...

View Article

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.

View Article


Image may be NSFW.
Clik here to view.

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

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 guess...

View Article

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

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...

View Article

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):...

View Article


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'>...

View Article


Some tags in the output from my controller are filtered away

I have a controller defined in MODULE.routing.yml which returns: return array( '#type' => 'markup', '#markup' => $this->content(), '#attached' => array( 'library' => $libs, ), ); The...

View Article
Browsing latest articles
Browse All 27 View Live