RichText in Magnolia CMS is changing HTML text -
i ask how can block richtext changing html text under source view. i'm using blossom module , defined richtext @chris j advised me do: add source button magnolia cms richtext control whenever put html code in source code, switch normal view , source view code changed. example following part of code missing :
<div class="components"> <div class="product col img-slider"> <div id="product-image" class="royalslider productimage rsdefault"> <div class="rscontent"> <div class="rstmb"><img src="/magnoliapublic/resources/xxx/products/product_7.jpg" alt="">
and replaced folowing
<p><img alt="" src="/magnoliapublic/resources/xxx/products/product_7.jpg" /></p>
i need provide possibility user put html code , next see in on web page.
regards jan
jan. i'd ask why using rich text area if entering html. not designed usage. better off ordinary text field? in stk (you mentioned in previous question) find component serves purpose.
under "configuration" find @ /modules/standard-templating-kit/templates/components/content/stkhtml
you see template script simply:
[#if content.edithtml?has_content] ${cmsfn.decode(content).edithtml} [/#if]
if want stick purely blossom approach, may need recreate incredibly simple component.
incidentally, in magnolia 5.4 there code editing field used in similar component offers syntax highlighting. can see logging demo site , trying add html component main area of page travel/contact.
Comments
Post a Comment