Hi,
I am successfully displaying html strings in ckeditor and can save with no problem. My company would like to create a set of documents in a specific font - Arial Narrow. I need ckeditor since the client will need the ability to make changes to the documents before putting them together to create the final document. Currently, the default font is Arial and as long as I use that, no problem. But if I copy in html code which is using the 'arial narrow' as font-family, the save will not work. I get a 'sqlite error syntax near 'Arial' error'.
Can anyone help me figure out what I need to add and where to resolve this?
I am successfully displaying html strings in ckeditor and can save with no problem. My company would like to create a set of documents in a specific font - Arial Narrow. I need ckeditor since the client will need the ability to make changes to the documents before putting them together to create the final document. Currently, the default font is Arial and as long as I use that, no problem. But if I copy in html code which is using the 'arial narrow' as font-family, the save will not work. I get a 'sqlite error syntax near 'Arial' error'.
Can anyone help me figure out what I need to add and where to resolve this?
Re: Add font to CKeditor
But I have a table definition that I only copied the first row to show here. It displays great in the editor but again, will not save to my database (sqlite). So I'm wondering if there is something not right with the way I am using html in defining my table.
Thank you in advance for any help available.
Re: Add font to CKeditor
<p>
</p>
<table __designer:dtid="1407374883553284" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; mso-table-layout-alt: fixed; mso-padding-alt: 0in .05in 0in .05in">
<tbody>
<tr __designer:dtid="1407374883553285">
<td __designer:dtid="1407374883553286" style="border-right: windowtext 0.75pt solid; padding-right: 0.05in; border-top: windowtext 3pt solid; padding-left: 0.05in; padding-bottom: 0in; border-left: windowtext 3pt solid; width: 74pt; padding-top: 0in; border-bottom: windowtext 3pt solid; height: 42px; background-color: transparent" valign="top">
<p __designer:dtid="1407374883553287" class="MsoNormal" style="margin: 0in 0in 0pt; text-align: left">
</p>
<p __designer:dtid="1407374883553291" class="MsoNormal" style="margin: 0in 0in 0pt; text-align: left">
</p>
<p __designer:dtid="1407374883553295" class="MsoNormal" style="margin: 0in 0in 0pt; text-align: left">
<span __designer:dtid="1407374883553296" style="font-size: 11pt"><span __designer:dtid="1407374883553297" style="font-family: arial narrow"><strong __designer:dtid="1407374883553298">BENEFIT</strong></span></span></p>
</td>
<td __designer:dtid="1407374883553300" colspan="3" style="border-right: windowtext 0.75pt solid; padding-right: 0.05in; border-top: windowtext 3pt solid; padding-left: 0.05in; border-left-color: #d4d0c8; padding-bottom: 0in; width: 97.85pt; padding-top: 0in; border-bottom: windowtext 3pt solid; height: 42px; background-color: transparent" valign="top" width="130">
<p __designer:dtid="1407374883553301" class="Arial11Boldcentered" style="margin: 0in 0in 0pt; text-align: center">
<span __designer:dtid="1407374883553302" style="font-size: 11pt"><span __designer:dtid="1407374883553303" style="font-family: arial narrow"><strong __designer:dtid="1407374883553304">REGULAR</strong></span></span></p>
<p __designer:dtid="1407374883553305" class="Arial11Boldcentered" style="margin: 0in 0in 0pt; text-align: center">
<span __designer:dtid="1407374883553306" style="font-size: 11pt"><span __designer:dtid="1407374883553307" style="font-family: arial narrow"><strong __designer:dtid="1407374883553308">EMPLOYEE STATUS</strong></span></span></p>
<p __designer:dtid="1407374883553309" class="Arial11Boldcentered" style="margin: 0in 0in 0pt; text-align: center">
<span __designer:dtid="1407374883553310" style="font-size: 10pt"><span __designer:dtid="1407374883553311" style="font-family: arial narrow"> </span></span><span __designer:dtid="1407374883553312" style="font-size: 10pt; font-family: 'arial narrow'">FTE PTE-1 PTE-2</span></p>
</td>
<td __designer:dtid="1407374883553313" colspan="3" style="border-right: windowtext 0.75pt solid; padding-right: 0.05in; border-top: windowtext 3pt solid; padding-left: 0.05in; border-left-color: #d4d0c8; padding-bottom: 0in; width: 97.85pt; padding-top: 0in; border-bottom: windowtext 3pt solid; height: 42px; background-color: transparent" valign="top" width="130">
<p __designer:dtid="1407374883553314" class="Arial11Boldcentered" style="margin: 0in 0in 0pt; text-align: center">
<span __designer:dtid="1407374883553315" style="font-size: 11pt"><span __designer:dtid="1407374883553316" style="font-family: arial narrow"><strong __designer:dtid="1407374883553317">PER DIEM</strong></span></span></p>
<p __designer:dtid="1407374883553318" class="Arial11Boldcentered" style="margin: 0in 0in 0pt; text-align: center">
</p>
<p __designer:dtid="1407374883553320" class="Arial11Boldcentered" style="margin: 0in 0in 0pt; text-align: center">
<span __designer:dtid="1407374883553321" style="font-size: 11pt"> </span><span __designer:dtid="1407374883553322" style="font-size: 10pt; font-family: 'arial narrow'">FTE PTE-1 PTE-2</span></p>
</td>
<td __designer:dtid="1407374883553323" style="border-right: windowtext 3pt solid; padding-right: 0.05in; border-top: windowtext 3pt solid; padding-left: 0.05in; font-weight: bold; font-size: 11pt; border-left-color: #d4d0c8; padding-bottom: 0in; width: 17pt; padding-top: 0in; border-bottom: windowtext 3pt solid; font-family: arial narrow; height: 42px; background-color: transparent" valign="top">
<p __designer:dtid="1407374883553324" class="Arial11Boldcentered" style="margin: 0in 0in 0pt; text-align: center">
</p>
<p __designer:dtid="1407374883553326" class="Arial11Boldcentered" style="margin: 0in 0in 0pt; text-align: center">
</p>
<p __designer:dtid="1407374883553328" class="Arial11Boldcentered" style="margin: 0in 0in 0pt; text-align: center">
<span __designer:dtid="1407374883553329" style="font-size: 10pt; font-family: 'arial narrow'">Temp.</span></p>
</td>
</tr>
</tbody>
</table>
Am I defining something incorectly or am I using tags that are not current or recognizable? This html comes directly out of the ckeditor after I copied my table from a separate html document into ckeditor. I did run my html document containing the table through an html validator before copying into ckeditor.
Thanks for any help on this matter!