Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Visual Editor additional tags

$
0
0
Hello!

I am currently trying to build a professional bootstrap template into my website.
My problem is, that headlines are styled using an aditional wrapping div element.
E.g: for a h5:
<div class="headline">
    <h5> 
       ....
    </h5>
</div>
Can I - and if so, then how? - teach the visualeditor via the common.xml (or something else) that it has to wrap an h5 into this div with the class "headline" when the User selects some "headline 5" styling?

e.g. I would love to see something like:
<format id="h1" ....>
      <div class="headline">
           <selector/>
      </div>
</format>
Also: As soon as I add a 'classes="headline"' to the <format> element of "h1" it is not visible anymore in the editor. Am I doing something terribly wrong?

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>