Elxis CMS Forum

Support => General => Topic started by: maple on August 23, 2014, 12:55:19

Title: <code> tag in ckeditor style dropdown list
Post by: maple on August 23, 2014, 12:55:19
Hi,

I see that in the Elxis 4.2 version don't display the <code></code> tag in ckeditor style dropdown list. We use this sometimes for the Image plugin. Sometimes instead to go to the Image plugin using the Elxis icon in the ckeditor toolbar, we insert directly the code in the article. For this reason it's useful to implement the code tag in the dropdown style list.

Anyway, if someone want to add the code tag:

go to includes\js\ckeditor\plugins\styles  open the default.js file

and add the following line:

{name:'Code',element:'code'},

thanks
Title: Re: <code> tag in ckeditor style dropdown list
Post by: datahell on August 24, 2014, 12:21:56
Guided input plugin manager adds code blocks to highlight the plugin.

For example when you insert an image the integration code is:
{image}media/images/test.jpg{/image}
Elxis does not require code blocks.

However guided input puts code tags just for highlight purposes inside the editor.
When the plugin runs it removes code tags from the final HTML.
<code>{image}media/images/test.jpg{/image}</code>

So plugins work with or without code tags.
In the case you dont use code tags you just wont have highlight of the plugin inside the editor.
Title: Re: <code> tag in ckeditor style dropdown list
Post by: maple on August 24, 2014, 13:54:16
Thank you, datahell