Skip to content

Initialize patterns on <pre> containers #805

@thet

Description

@thet

The following commit prevents patterns from being initialized on <pre> containers:

8f4b14b

While working on a pat-codeeditor for Plone I found that limiting.
It would be nice, if a code editor could be initialized like

<pre><code class="pat-codeeditor">
</code></pre>

Do we need to have patterns not initialized on <pre> elements?

If yes, can we add a functionality to initialize it when the element has a class like .do-touch-this, similar to the .cant-touch-this which also prevents elements from being initialized?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions