No paragraph around droplet?

dbs

In the editor config.js you can choose what happens by Enter.
P, BR or DIV.

I use BR, so nothing will wrapped around anything.
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

instantflorian

Thank you, but that's not exactly what I need... I do need <p> in wysiwyg section, so I can't set the default to <div>, and as I said before it's not practicable using droplets only in code2-sections. I could cope with that (although I wouldn't like it at all), but usual users would be overstrained I think.

Gast

i use a Code²-Section, if i need (a) droplet call(s) only in a section (not in combination with content like wysiwyg)

for the editors i use div in the settings
fckeditor/fckeditor/fckconfig.js
FCKConfig.EnterMode = 'div' ;

btw
ckeditor/wb_config/wb_ckconfig.js  or a wb_ckconfig.js in your template dir
config.enterMode = CKEDITOR.ENTER_DIV;

instantflorian

Hi,

when calling a droplet from a WYSIWYG section, there is a <p> or <div> around the droplet output code, because the wysiwyg editor adds <p>...</p> or at least <div>...</div> around the [[call]].

So if I have f.ex. a droplet which should build the output
<p class="specialclass">Some default text: some value</p>
and I call this in a wysiwyg section by [[specialtext?value=some value]], the generated code in frontend is like
<p><p class="specialclass">Some default text: some value</p></p>
what is neither valid nore what I wanted.

Is there any way to avoid this (except for calling droplets only out of code-sections, what is not practicable)?
I'm interested in a general solution, not for the stupid example above.

BR
-f.