XF 2.2 Enable full Froala table editor

Slion

Active member
I'm looking at improving our WYSIWYG table editor to possibly bring the full feature set offered by Froala. Already released that Add-On to support colspan though only through BB code editor. I'm just not sure where to start to enable the missing Froala cell style options. The Html to BbCode to Html rendering loop I should be able to handle like I did for colspan.
 
So I found that tableEditButtons from editor.js but I'm not sure if and how an Add-On can change it. There is also a minified version of that file in that js\xf folder.

Resources:
 
Looking at editor.js, it fires that editor:config event using jquery. Assuming that applies to the textarea I modified the editor template to inject the following but the event is not received:
Code:
    document.getElementsByName("{$htmlName}")[0].addEventListener("editor:config", function (aConfig,aEditor)                                                                {
        alert("editor:config");
    });

Not sure what I'm missing. I'm hoping I could modify the config from that event.
 
Looks like I actually went through that before:

🤣
 
Looks like I actually went through that before:

🤣
Solving your own problems since 2023! Are you AI?
 
Back
Top Bottom