Topic Closed
juergen
1.4K Posts
51.7K Downloads
16 Plugins
design, web development & visual effects

I'm looking for a way to get the following working in my current project (FullCalendar for gpEasy):

The FullCalendar will be a new Section Type containing solely the default content ...

'<div class="fullcalendar" data-config="'
. $fullCalendarDefaultConfig_JSON .
'"></div>'

$fullCalendarDefaultConfig_JSON will store the calendar's options which will be applied when the calendar instance in this section is invoked (using FullCalendar jQuery Plugin)

When editing this section I'd like to trigger a modal admin box ($gp.AdminBoxC ?) that sports a codemirror instance to edit the calendar configuration.
I have trouble figuring out how to achieve this in my FullCalendar::InlineEdit_Scripts function.

Furthermore can I use common::LoadComponents('codemirror'); and if so, which Hook should I use?

A faux screenshot of the favored interface:


Thanks in advance!

Edited: 5 years ago#7313

fly06
263 Posts
18.2K Downloads
1 Themes
8 Plugins

Hi Juergen

I am not sure to understand your question(s).

What do you mean by triggering an Admin Box in INline Editing ?

Btw, opening a dynamic content (a form for instance) inside an admin box (a gpeasy modal window) is quite easy it is just a question of adding the proper attributes to links and submit buttons.

The include/special/special_search.php file is a good example to get started.

5 years ago#7323

juergen
1.4K Posts
51.7K Downloads
16 Plugins
design, web development & visual effects
Thanks for the hint Frédéric!

The whole inline editing stuff is sort of new to me and I'm trying to get the concept of all the AJAX, section.object and bulit-in tools.
Actually, for my current FullCalendar plugin I have abandoned the idea of editing JSON in a codemirror instance. But I got it working and it will likely come in handy sometimes.

FYI: gpEasy'S included codemirror cannot be loaded using common::LoadComponents()but there will be no conflicts since gpEasy only uses codemirror for writing CSS/LESS in the layout editor. Therefore a custom, independent version can be loaded safely from a plugin.
5 years ago#7324

juergen
1.4K Posts
51.7K Downloads
16 Plugins
design, web development & visual effects

FullCalendar for gpEasy is ready:

http://gpeasy.com/Plugins/280_FullCalendar_for_gpEasy

(and Codemirror loaded in a gpAdminBox is back in for Advanced Config ;-)

5 years ago#7326

Topic Closed

 

News

Typesetter 5.1
8/12/2017

Typesetter 5.0.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register