Hey everyone,
I have ckeditor installed and working well, I have overridden the default bold/italic/underline tags within config.js using the following code:
This is nearly fine and creates a span tag using the relevant variable making it valid. The only problem is that I can only have one style set at a time, ie if i make a word bold this works fine, but then if i make it underlined it removes the bold setting completely and replaces it with underline. Is there anyway to use these simultaneously without having to use <b> / <strong> / <u> / <i> tags?
Any help you can give would be much appreciated, thanks so much.
Dave
I have ckeditor installed and working well, I have overridden the default bold/italic/underline tags within config.js using the following code:
config.coreStyles_bold = { element : 'span', attributes : {'style': 'font-weight: bold'} }; config.coreStyles_italic = { element : 'span', attributes : {'style': 'font-style: italic'} }; config.coreStyles_underline = { element : 'span', attributes : {'style': 'text-decoration: underline'}};
This is nearly fine and creates a span tag using the relevant variable making it valid. The only problem is that I can only have one style set at a time, ie if i make a word bold this works fine, but then if i make it underlined it removes the bold setting completely and replaces it with underline. Is there anyway to use these simultaneously without having to use <b> / <strong> / <u> / <i> tags?
Any help you can give would be much appreciated, thanks so much.
Dave
Re: Using bold, italics and underline at the same time!
Re: Using bold, italics and underline at the same time!
Re: Using bold, italics and underline at the same time!