cYbercOsmOnauT / wysiwygsceditorphpbb

8 stars 11 forks source link

I want implements new buttons #36

Open Hideman85 opened 7 years ago

Hideman85 commented 7 years ago

I try your extension on my phpbb3.2 board and I like it, but

So I want to implement this on my board I find some things in your jquery.sceditor.bbcode.min.js like this :

email: {
    txtExec: function(a, b) {
        var c = this,
            d = b && b.indexOf("@") > -1 ? null : b,
            e = prompt(c._("Enter the e-mail address:"), d ? "" : b),
            f = prompt(c._("Enter the displayed text:"), d || e) || e;
        e && c.insertText("[email=" + e + "]" + f + "[/email]")
    }
},

But in minify mode it's hard to understand ....

Thanks in advance for your reply ;)

Nitair commented 7 years ago

I will take a look on this. Thanks for your feedback.

Hideman85 commented 7 years ago

Why you didn't just parse BBCode database ? Because all extensions add new BBCode in database like CodeboxPlus : BBCode :

[Codebox={SIMPLETEXT1} file={SIMPLETEXT2}]{TEXT}[/Codebox]

And Html :

<div class="codebox" title="{L_CODEBOX_PLUS_TITLE}" data-language="{SIMPLETEXT1}" data-filename="{SIMPLETEXT2}"><p>{L_CODE}{L_COLON} <a href="#" onclick="selectCode(this); return false;">{L_SELECT_ALL_CODE}</a></p><code>{TEXT}</code></div>

Like you can see :

Note :