Close

[Question] Allowing additional HTML tags

illutian
9 years ago
#9570 Quote
Avatar
  • 18
Reported it over in the bugs, and was told you need to modify the RichEditor.cshtml

But, I'm looking at it and have no idea were to put the possible fix of "extended_valid_elements". And looking at the TinyMCE wiki it's pretty clear that the editor's config isn't set up for Razor HTML files :\

Optimally, I'd like to tell the editor to completely ignore HTML tags. Specifically the <g:plusone></g:plusone> tags used in the Google +1 button code.
Deni
9 years ago
#9578 Quote
Avatar
  • Moderator
  • 389
illutian wrote:
Reported it over in the bugs, and was told you need to modify the RichEditor.cshtml

But, I'm looking at it and have no idea were to put the possible fix of "extended_valid_elements". And looking at the TinyMCE wiki it's pretty clear that the editor's config isn't set up for Razor HTML files :\

Optimally, I'd like to tell the editor to completely ignore HTML tags. Specifically the <g:plusone></g:plusone> tags used in the Google +1 button code.


Hi, 

I think I found a solution for you. In the documentation of Google, I found that the "g:plusone" tag can be replaced by W3C compliant element:
<div class="g-plusone" data-size="tall"></div>


I hope this helped !
Best Regards,
Mladen Staykov
Nop-Templates.com
illutian
9 years ago
#9581 Quote
Avatar
  • 18
Somewhat worked...Editor keeps making it:

<center>
<div class="socialLikes">
<script src="https://apis.google.com/js/platform.js" async="" defer="defer"></script>
<div class="g-plusone" data-size="standard">&nbsp;</div>
</div>
</center>

Instead of:

<center>
<div class="socialLikes">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<div class="g-plusone" data-size="standard">&nbsp;</div>
</div>
</center>

In short, in my opinion, Tiny MCE is the worst POS text editor.
((Maybe Nop Templates could come out with a Text Editor plugin *hint**hint* :P ))