Radio button toggle to determine RadEditor output

Posted by Community Admin on 05-Aug-2018 14:17

Radio button toggle to determine RadEditor output

All Replies

Posted by Community Admin on 26-Jun-2012 00:00

Currently when using the RadEditor to display a content widget, by default (and hardcoded) the widget is displayed inside a <div class="sfContentBlock"></div>

I would like the ability to have a user-friendly toggle to say if the content widget should output as a <div> a <article> or a <section>. See mock-up attached where the rendered output would become:

<!--  output as paragraph -->
<div class="sfContentBlock">
  Here's my content
</div>
 
<!-- output as article -->
<article class="sfContentBlock">
  Here's my content
</article>
 
<!-- output as section -->
<section class="sfContentBlock">
  Here's my content
</section>


Although the term 'paragraph' may be misleading considering the <p> tag, it makes sense to an end-user in terms of the paragraph/article/section dividing on a certain page.

Jochem

This thread is closed