Hey,
I've encountered few problems related to nicedit, which doesn't display nicely (contrary to it's name). While it's easy to fix, I still can't seem to grasp basic things around it.
I'll give a quick overlook on how it works:
So, Client enters all the needed settings ->
Which then gets displayed on the site:
Well, I tried to put everything for Russian version, so I could display how it works and everything works great.

Well, here I have the question. Why it is making automatic </br> tags? I've never put them in the code. I would believe it was because there's a space between the code? Of course, it makes everything look even better.
Ok, so I give this to the client, and say to him, well - you can put other variables "contact_job_lv" and "contact_job_en" here.
Well - he just went ahead and did that, using ctrl-c -> ctrl-v from Word. End results was a mess - it's been fixed for now - but using the same code, the lines were out order, the font was significantly bigger - the problem was - it added somewhat random [span] tags in html, and formatted text in his own way.
While it's kinda fixed now - it still does some html formating on it's own - how can I clear it, without deleting the whole row?
HTML Code:
How it should be:
How it is in fixed version:
So, to put it all together -> Here are my key questions..
1. How are </br> tags created?
2. How to remove formatting, if copied from other sources, more precisely, clear ALL formatting aka [span] tags?
(using basic text was a option - and it was used, but it was really squished together, meaning it would be hard to read/edit);
Thanks.
I've encountered few problems related to nicedit, which doesn't display nicely (contrary to it's name). While it's easy to fix, I still can't seem to grasp basic things around it.
I'll give a quick overlook on how it works:
So, Client enters all the needed settings ->
- Code: Select all
<cms:repeatable name='contacts' >
<cms:editable name='contact_name' label='Vārds' maxlength='100' type='nicedit' />
<cms:editable name='contact_job_lv' label='Amats_lv' maxlength='100' type='nicedit' />
<cms:editable name='contact_job_en' label='Amats_en' maxlength='100' type='nicedit' />
<cms:editable name='contact_job_ru' label='Amats_ru' maxlength='100' type='nicedit' />
<cms:editable name='contact_phone' label='Telefona numurs' maxlength='100' type='text' />
<cms:editable name='contact_email' label='E-pasts' maxlength='100' type='text' />
</cms:repeatable>
Which then gets displayed on the site:
- Code: Select all
<cms:pages masterpage='globals.php'>
<cms:show_repeatable 'contacts' >
<div class="grid-6">
<li>
<cms:if "<cms:not_empty contact_name />" >
<i class="icon-user icon-large" style="color:chocolate"></i> <b><cms:show contact_name /></b>
</cms:if>
<cms:if "<cms:not_empty contact_job_ru />" >
<i class="icon-briefcase icon-large" style="color:darkolivegreen"></i> <cms:show contact_job_ru />
</cms:if>
<cms:if "<cms:not_empty contact_phone />" >
<i class="icon-phone-sign icon-large" style="color:darkslateblue"></i> <cms:show contact_phone />
</cms:if>
<cms:if "<cms:not_empty contact_email />" >
<i class="icon-envelope icon-large" style="color:goldenrod"></i> <cms:show contact_email />
</cms:if>
</li>
</div>
</cms:show_repeatable>
</cms:pages>
Well, I tried to put everything for Russian version, so I could display how it works and everything works great.

Well, here I have the question. Why it is making automatic </br> tags? I've never put them in the code. I would believe it was because there's a space between the code? Of course, it makes everything look even better.
Ok, so I give this to the client, and say to him, well - you can put other variables "contact_job_lv" and "contact_job_en" here.
Well - he just went ahead and did that, using ctrl-c -> ctrl-v from Word. End results was a mess - it's been fixed for now - but using the same code, the lines were out order, the font was significantly bigger - the problem was - it added somewhat random [span] tags in html, and formatted text in his own way.
While it's kinda fixed now - it still does some html formating on it's own - how can I clear it, without deleting the whole row?
HTML Code:
How it should be:
- Code: Select all
<div class="grid-6">
<li>
<i class="icon-user icon-large" style="color:chocolate"></i> <b>Arvis Vingris<br /></b>
<i class="icon-briefcase icon-large" style="color:darkolivegreen"></i> Valdes Priekšsēdētājs<br />
<i class="icon-phone-sign icon-large" style="color:darkslateblue"></i> 29199234
<i class="icon-envelope icon-large" style="color:goldenrod"></i> arvis@rdr.lv
</li>
</div>
How it is in fixed version:
- Code: Select all
<div class="grid-6">
<li>
<i class="icon-user icon-large" style="color:chocolate"></i> <b>Raivis Vingris<br /></b>
<i class="icon-briefcase icon-large" style="color:darkolivegreen"></i><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-style: normal;">Ražošanas daļas vadītājs</span><br />
<i class="icon-phone-sign icon-large" style="color:darkslateblue"></i> 25652157
<i class="icon-envelope icon-large" style="color:goldenrod"></i> raivis@rdr.lv
</li>
</div>
So, to put it all together -> Here are my key questions..
1. How are </br> tags created?
2. How to remove formatting, if copied from other sources, more precisely, clear ALL formatting aka [span] tags?
(using basic text was a option - and it was used, but it was really squished together, meaning it would be hard to read/edit);
Thanks.