er...@intechnic.lv
unread,Apr 25, 2012, 8:20:21 AM4/25/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to In-Portal Development Team
On the one hand, it is convenient when the HTML-code, is included in
the Content Block as simple as possible (do not have a lot of styles,
formatting) - then the user is easier to avoid mistakes in the
elements styling. On the other hand, it is desirable that when editing
a Content Block looks like on the page, that is, that its elements
have the same style as on the page.
In order to satisfy both above requirements, I suggest add to
ContentBlock tag optional "class" parameter. If this option is
specified, then in the CMS-editor window, the value of this parameter
is added to the "class" attribute of <body> tag. For example, if class
is not specified, <body> tag is the way it is now - <body
contenteditable="true" spellcheck="false" class="cke_show_borders">.
If in the template is written <inp2:st_ContentBlock num="1" class="big-
font"/>, then the "body"-tag will be the - <body contenteditable =
"true" spellcheck = "false" class = "cke_show_borders big-font">
That is, we should not include in the CMS-content unit covering
element to apply all related styles in the CMS editor window. And the
content of CMS block may contain no "class" attributes, but have
adequate and powerful styling applied.