Hello,
I want to use my own special block elements (like <custom1>,<custom2>...) for specific purposes.
And so i want to be able to use this elements from format comboox.
With using styles/stylescombo plugins i was able to define those tags but the editor treats them as inline styles.
is it possible to define as block so that the following code returns true
alert( !!CKEDITOR.dtd.$block[ 'custom1' ] ); "true"
a second question is how to ensure these custom tags should be only placed in body element
example
<body><custom1><p><b>....</b></p></custom1><custom2>.....
not:
<body><p><custom1>.....<custom2>....
Thanks
I want to use my own special block elements (like <custom1>,<custom2>...) for specific purposes.
And so i want to be able to use this elements from format comboox.
With using styles/stylescombo plugins i was able to define those tags but the editor treats them as inline styles.
is it possible to define as block so that the following code returns true
alert( !!CKEDITOR.dtd.$block[ 'custom1' ] ); "true"
a second question is how to ensure these custom tags should be only placed in body element
example
<body><custom1><p><b>....</b></p></custom1><custom2>.....
not:
<body><p><custom1>.....<custom2>....
Thanks
Re: how to define a new custom block element?
i understand that there is not an easy way to accomplish that.
but i found a solution, in the ckeditor.js file i duplicated the commands for tag <address>.
and made changes in styles and stylescombo plugin files.
so now ckeditor identifies and markup my custom tags.
Re: how to define a new custom block element?
because i'm also facing the same problem
i have some custom tags like <ssn> <ffd>...
to which fckeditor parse and outputs like <ssn></ssn> <ffd></ffd>
which i want as <ssn> and <ffd> as it is.
there may be so many custom tags in my source so it is not feasible to write come code for all of them separately
please suggest