Im using CKEditor in a program that does not support style. I can use just the html tags. How can I configure CKeditor to use html tags instead of SPAN and Style (<font color=#RBG> instead of <span style="color:#RBG">)
Fri, 04/26/2013 - 21:23
#1

Check out this sample: http:/
Check out this sample: http://nightly.ckeditor.com/full/samples/plugins/htmlwriter/outputhtml.html
You need to configure styles and Advanced Content Filter. In this sample's code you'll find everything you need.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Here is my config file. For
Here is my config file. For some reason I does not let the CKEditor to run. If I take out the font size and font face, it will run just fine.
any Idea what did I do wrong?
CKEDITOR.config=
{
skin : 'office2003',
// disableNativeSpellChecker : false,
// autoParagraph : false,
toolbar :
[ +
['SelectAll','Cut','Copy','Paste','PasteText','PasteFromWord','-', +
'Undo','Redo','Find','Replace','SpellChecker','Scayt'], +
['Font','FontSize','TextColor','Bold','Italic','Underline'], +
['JustifyLeft','JustifyCenter'], +
['Link','Source'] +
],
coreStyles_bold : { element: 'b', overrides: 'strong' },
coreStyles_italic : { element: 'i', overrides: 'em' },
coreStyles_underline : { element: 'U'},
font_style =
{
{ element: 'font', attributes: { 'face': '#(family)' } }
},
fontSize_style =
{
{ element: 'font', attributes: { 'size': '#(size)' } }
}
};
Hmm... I'm afraid that you
Hmm... I'm afraid that you need to learn JavaScript first. Code you pasted has several basic syntax errors (which are definitely logged on the JS console in your browser).
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+