Hi Im using the editor for several sites and wanted to know if you can add extra style classes in the config area. EG

I would like to out a span class each time I add a header tag without having to edit and add the tage each time is use the editor. I want the class to be added automatically added to the header tag.

Present out

Header

What I want to be outputted

Header

The span classes added within the config file or the correct file. Sorry a designe here a point in the right direction would be great.

Thanks in advace

Comments

joe enbula’s picture

First post. Ok here is the code

<h1>Header</h1>

What I want to be outputted

<h1><span></span>Header</h1>

The span classes added within the config file or the correct file. Sorry a designe here a point in the right direction would be great.

Thanks in advace

jorrit’s picture

Status: Active » Closed (won't fix)

This is definitely not something that would be added to the FCKeditor module. Either write a plugin for FCKeditor (or even better: CKEditor), or write a filter for Drupal.

joe enbula’s picture

Im not expecting a rewrite of to FCKeditor..... Just a hint to where to find the code. SO I can have a try and see if it would work? Thanks

jorrit’s picture