Bootstrap Toolbar

Post Reply
lodria
Master Bludit
Posts: 151
Joined: Wed Jan 29, 2020 8:32 pm
Has thanked: 27 times
Been thanked: 10 times

Hi!

I was pleased to see the release of the latest plugin! I’ve tried similar plans, but it offers a lot of new opportunities!
My question would be, what would be the easiest way to expand this extension? How to develop?
I've tried extending grid.php and it works, but I only managed to put in a new layout if I replaced the existing ones.
But I want to have extra lines.
In any case, I think the bludit cms system was in great need of a similar plugin.
User avatar
multicolordev
Master Bludit
Posts: 137
Joined: Thu May 26, 2022 12:33 pm
Has thanked: 15 times
Been thanked: 91 times

Hi,
I created this:) Tell me more, what do you want more grid? On bootstrap or you own grid? I can create custom grid generates with json soon, you add {'titlebutton','customhtmlcode'} if you want.
Image
lodria
Master Bludit
Posts: 151
Joined: Wed Jan 29, 2020 8:32 pm
Has thanked: 27 times
Been thanked: 10 times

I'm so glad you wrote! This plugin is very useful. I just want to expand.

My problem was that I can't add a + line because it just matches another.
But I also want a new one.

Could you describe the process in more detail?

Thanks!
User avatar
multicolordev
Master Bludit
Posts: 137
Joined: Thu May 26, 2022 12:33 pm
Has thanked: 15 times
Been thanked: 91 times

I will create soon new version but now you must :

on php/grid.php inside folder plugin on line 20

add new button like previous like i created, but replace grid-12 or something simillar grid to own, next step on down the file line add like this example

Code: Select all

document.querySelector('.your new name class').addEventListener('click',(e)=>{
    tinyMCE.get('jseditor').dom.loadCSS('https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css'); 


    e.preventDefault();


    let value=`    
your html 
    `;

    tinymce.get("jseditor").setContent(tinymce.get("jseditor").getContent()+value)
})
Image
lodria
Master Bludit
Posts: 151
Joined: Wed Jan 29, 2020 8:32 pm
Has thanked: 27 times
Been thanked: 10 times

It was done with your help! I actually have a lot of ideas, but I can save a lot of work with this plugin!
Thanks for the development!
User avatar
multicolordev
Master Bludit
Posts: 137
Joined: Thu May 26, 2022 12:33 pm
Has thanked: 15 times
Been thanked: 91 times

Send me your idea on my discord if you want :) i update this plugin
https://discord.gg/98q37CTCqE
Image
User avatar
multicolordev
Master Bludit
Posts: 137
Joined: Thu May 26, 2022 12:33 pm
Has thanked: 15 times
Been thanked: 91 times

v 2.0 on repo:)

next grid option, fixed icon url ,grid generates there where text cursor not like previous version and some fixes.
Image
lodria
Master Bludit
Posts: 151
Joined: Wed Jan 29, 2020 8:32 pm
Has thanked: 27 times
Been thanked: 10 times

Works well.. ;)
Post Reply