I am using ckeditor for my text area input. I want to prevent ckeditor from converting '(c)' to the copyright symbol and '(e)' to the euro symbol
Add this to your config file
config.entities = false;
Related
I'm using Typo3 9.5.10 with the CKEditor.
For a extension we reused the tt_content subheader and changed the type from input to text.
Since we are on CKEditor, the CMS or the editor adds new line breaks between tags on save. When open the element, the editor converts them to new paragraphs.
We don't use flux, I tryed these configurations:
editor:
config:
ignoreEmptyParagraph: true
autoParagraph: false
enterMode: CKEDITOR.ENTER_BR
Does anyone know that and found a solution?
Rupee currency symbol not rendering properly in my invoice pdf.. It shows tags like this **₹**. Please someone help me out this issue.
You could try changing the font of the invoice. That can be done by making local versions of these files:
app/code/core/Mage/Sales/Model/Order/Pdf/Items/Abstract.php
app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php
Put them to:
app/code/local/Mage/Sales/Model/Order/Pdf/Items/Abstract.php
app/code/local/Mage/Sales/Model/Order/Pdf/Abstract.php
Then edit functions _setFontRegular, _setFontBold and _setFontItalic.
$font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir(). /lib/LinLibertineFont/**yourfont**.ttf);
Also you have to put yout TTF font file to the lib/LiLibertineFont folder. You could try font like DejaVuSans. That worked for Nigerian Naira currency at least.
the solution for this problem is very simple
just click on system --> Magnage currency -->symbols --> Copy your symbol like in my case "₹" and save...
My pdf problem solved with this :)
Hope this help
I am currently creating a powerpoint file in C# using VSTO. My problem is that I need to display HTML formated text in a textbox :
PowerPoint.Shape descriptionTitle = slide6.Shapes.AddTextbox(xxx);
descriptionTitle.TextFrame.TextRange.Text = "<b>html string</b>";
Is there any way to display my string?
Hiii
I am using magento 1.4,I want to change indian currency symbol Rs with new rupee symbol on frontend as well as backend.
Anyone Can tell me about this???
If I'm not wrong the symbol definitions can be found into
lib/Zend/Locale/Data/characters.xml
lib/Zend/Locale/Data/root.xml
If you change those values then copy those files to your local code-pool
app/code/local/Zend/Locale/Data/characters.xml
app/code/local/Zend/Locale/Data/root.xml
when done don't forget to clear cache
rm -rf var/cache/*
Navigate to your magento root directory and open lib/Zend/Locale/Data/root.xml
after that add the symbol = amp#8377;(& for amp) or amp#x20B9;(& for amp) in the following block
<currency type="INR">
<symbol> ₹ </symbol>
</currency>
For magento 2.2.5 version, to display rupees symbol, add Roboto font family
and update font-family in css file
https://fonts.google.com/specimen/Roboto?selection.family=Roboto
<style>
#font-face{font-family:'Roboto';src:url(path_of_font/roboto-regular-webfont.woff) format('woff'),url(path_of_font/roboto-regular-webfont.ttf) format('truetype');}
body{color:#333;font-family:'Open Sans','Helvetica Neue','Helvetica','Roboto';font-style:normal;font-weight:400;line-height:1.42857143;font-size:1.4rem}
</style>
<symbol>₹</symbol>
Login to your magento admin panel and follow the below steps
1.System->Configuration->Currency setup
in Currency options tap change all the fields to indian rupee, but the 'Base Currency' is important to change
2.Save the changes
3.Again go to System->Manage Currency->Symbols
in that window shows the default rupee symbols, you just type ₹ (and put semicolon ; at end) in the Symbol column and uncheck the 'use default' at last and save the changes.
Now go to your user page it will show the rupee symbol. It will work for me in magento 1.9
I am writing a Firefox extension. When a user highlights and right clicks a selected text on a webpage, the extension captures the text and displays it in a textbox (xul window). The textbox shows the correct formating (like the line breaks, spaces, * for li tags.). But the problem happens when i try to store the textbox value in a variable. The line breaks are gone.
var selText = document.getElementById("txtboxSelectedText").value; //
Can anybody help?
Thanks a lot.
Is this a real textbox or a rich text editor like tinyMCE or open wysiwyg?
In a real textbox there are linebreaks. In the rich text editors, they are really iframes with html content... what looks like a line break is really a <br/> tag.
The reason I suspect this is you can't have li tags (and their associated bullet points) inside a normal textbox