WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • No paragraph around droplet?
  • Print
Pages: [1]   Go Down

Author Topic: No paragraph around droplet?  (Read 12360 times)

instantflorian

  • Guest
No paragraph around droplet?
« on: August 29, 2014, 02:18:34 PM »
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
Code: [Select]
<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
Code: [Select]
<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.
Logged

Offline jacobi22

  • Betatester
  • **
  • Posts: 5920
Re: No paragraph around droplet?
« Reply #1 on: August 29, 2014, 02:56:07 PM »
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
Code: [Select]
FCKConfig.EnterMode = 'div' ;
btw
ckeditor/wb_config/wb_ckconfig.js  or a wb_ckconfig.js in your template dir
Code: [Select]
config.enterMode = CKEDITOR.ENTER_DIV;
Logged

instantflorian

  • Guest
Re: No paragraph around droplet?
« Reply #2 on: September 02, 2014, 09:06:19 AM »
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.
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: No paragraph around droplet?
« Reply #3 on: September 02, 2014, 09:15:19 AM »
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.
Logged
https://onkel-franky.de

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • No paragraph around droplet?
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2