How to add Kruti Dev 010 font in ckeditor? -


Hello, I need to add the Kruti Dev 010 font to my CK editor. I've downloaded the font and added the font face to ckeditor's My content.css file. In the Ckeditor.config.js file, I have added this line:

  config.font_names = 'Kruti Dev 010 / "Kruti dev_010";' + Config.font_names;   

And it's working fine (I can add the Hindi font) But the problem is that when I copy this text into the word file then instead of the English Font CrudeDay font Is appearing, because the font family needs a word like this:

  & lt; Span style = "font-family: & quot; crutti dev 010 & quot;" & gt;   

And my font family is "kruti_dev_010".

So I tried to change the font name in ckeditor.config.js:

  config.font_names = 'kruti dev 010 / "kruti dev 010";' + Config.font_names;   

But it is not working and I think that numeric character with the empty space in the font name is causing the problem.

thanks

itemprop = "text">

You can remove external devices from CeEditator instance And add buttons. When you click on the button, this editor takes content, replaces "Kruti Dev 010" with "Kruti Dev 010" and keeps the updated content in the div. After this, you copy the content of the word to the word doctor.

  $ ("#button"). Click (function () {var editorContent = CKEDITOR.instances ['TextAreaID']. GetData (); Editor Content.Relest ('Kruti dev_010', 'Kruti Dev 010'); $ ('#dependentwar'). Html ( Editor content);});   

To display the HTML tags in the Div instead of the presentation, use .html instead of .text if you wish. Do this, like:

  $ ('# divForWord'). Text (editor content);    

Comments