Giter VIP home page Giter VIP logo

wysiwygsceditorphpbb's Introduction

trophy

wysiwygsceditorphpbb's People

Contributors

cybercosmonaut avatar ky0suke avatar nassim99 avatar orynider avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wysiwygsceditorphpbb's Issues

Wrong Emoticons

SCEditor tries to load its standard emoticons and the replacement of the phpBB emoticons with the actual image is broken because, like said before, SCEditor only uses its standard ones.

Error when including sceditor's CSS

On file "styles\all\template\event\overall_header_head_append.html", there are on line 2 "" , but the "default.min.css" file don't exists : the correct file name is "jquery.sceditor.default.min.css".

Sizes are wrong

The sizes are from 1 to 7 but phpBB needs Tiny (50), Small (85), Normal (no size - 100) Large (150) and Huge (200).

Lines disappear at press Code button (WYSIWYG to BBCode)

Hi! I think there is some problem with the programation because when I paste some text copied from a website in the WYSIWYG editor the text appears correctly, but when I press the Code button (CTRL+SHIFT+S) the lines dissappear and is needed add an extra line in every paragraph to solve it. Also if I publish the text without press the Code button anyway appears incorrectly. This is a pic about the problem (also attached):

http://i66.tinypic.com/10zctx2.jpg

In the top is when I paste the text in the WYSIWYG editor, in the middle when I press the Code button, and in the bottom when I press again the button to be back to the WYSIWYG editor.

I have been checking modifying the lines 1826 --> 1844 in the jquery.sceditor.bbcode.min.js file, chaging the "br" and "div" for some "p" or other "br" I got for example that when I press the button 2 times it appears with a line separation, but neither is correct because when there is 2 consecutive lines without separation also appears a line separation, so I not got put it correctly. I think here is the problem:

            for (q = function(a) {
                    return (!a || (a.isHtmlInline !== g ? a.isHtmlInline : a.isInline)) !== !1
                }; b.length > 0;)
                if (j = b.shift()) {
                    if (j.type === n.OPEN) r = j.children[j.children.length - 1] || {}, k = A.bbcodes[j.name], o = d && q(k), l = u(j.children, !1), k && k.html ? (q(k) || !q(A.bbcodes[r.name]) || k.isPreFormatted || k.skipLastLineBreak || i || (l += "<br />"), a.isFunction(k.html) ? m = k.html.call(A, j, j.attrs, l) : (j.attrs[0] = l, m = e.bbcode.formatBBCodeString(k.html, j.attrs))) : m = j.val + l + (j.closing ? j.closing.val : "");
                    else {
                        if (j.type === n.NEWLINE) {
                            if (!d) {
                                s.push("<br />");
                                continue
                            }
                            p || (s.push("<div>"), (h < 8 || c.documentMode && c.documentMode < 8) && s.push(" ")), i || s.push("<br />"), b.length || s.push("<br />"), s.push("</div>\n"), p = !1;
                            continue
                        }
                        o = d, m = f(j.val, !0)
                    }
                    o && !p ? (s.push("<div>"), p = !0) : !o && p && (s.push("</div>\n"), p = !1), s.push(m)
                }
            return p && s.push("</div>\n"), s.join("")

I'm using PHPBB v3.2.2 forum.

Anyway thanks for the mod. I will be waiting the answer =)

code

Emoticons not work on 3.2

Hi..
The text editor is perfect, but my custom emoticons not work..!
I can view and select the smiles by the sceditor, the emoticons are showed on the text when I'm editing this, but when I post, is showed the text of the emoticon as simple text..! :-(

Can't Post anything with the editor

When I type anything into the editor and press on send I get an error message from the board.
Your message contains too few characters.

I have no extra mods activated that would prevent the post, I have the feeling that the editor doesn't parse the Text into the posting body?

HTML table with visible borders in editor

Is it possible to get visible borders in the editor when creating an HTML table? In the current state, it's quite difficult to create a table because cells are barely visible.

Tables are renderd with <br/> above

It seems that when using tables with [table], [tr], [td] BBCodes, whether or not there are created throught Wysiwyg editor, each line break, for instance for formating BBCode message is translated into a <br /> above the rendered table.

This problem can be circumvented in manual edition by removing line breaks, but with the Wysiwyg editor, it's not really what's expected.

I found this working hack mentionned in PHPBB forums.

Do you think it's possible to mod the exisiting BBCodes in such a way? I can prepare a PR if you think it's the way to go.

YouTube videos not showing in post

when attempting to embed a YouTube video, the clip shows up fine in the editor but not in the post. I'm not much of a developer, but it does appear that the video is being embedded in the final post even though it is not visible.

phpBB 3.2.0
PHP 7.1.1
ComBoot Theme (I switched back to prosilver and result is the same)

Enabled Extensions:

  • Board Announcements 1.0.5 by phpBB
  • Contact Admin 1.1.1 by rmcgirr83
  • phpbb 3.1 WYSIWYG BBCode Editor 1.7.8 by (you)
  • VigLink 1.0.0 by phpBB

Installed but not Enabled:

  • Advanced BBCode Box 3.1.3 by vse
  • File Download 1.0.2 by dmzx

[ Working in the editor ]

editor

[ Actual post ]

post

[ Inpsector Code Snippet ]

inspect

in-line attachment bbcodes not changed

phpBB 3.2.0

Hi!

I have found a problem with in-line attachments. Problem is when there are number of attachments uploaded and added to the text editor ( [attachment=0]1.jpg[/attachment] etc ). Then, when new attachment is added the old attachment indexes are not changed inside the text editor. Tested by disabling wysiwygsceditor and then it worked (after Add files there seems to be a function that rearranges already in place attachments inside the text editor)

For example when text editor has attachments listed:
[attachment=0]1.jpg[/attachment]
[attachment=1]1.jpg[/attachment]
[attachment=2]search.jpg[/attachment]
[attachment=3]manual.jpg[/attachment]
[attachment=4]manual2.jpg[/attachment]

Now we want to upload one more attachment and this gets named:
[attachment=0]2.JPG[/attachment]

Problem is now that there already is attachment=0 and this messes up the list.
Default behavor should be that after Add files there is function to rename already in place attachment bbcodes.

This problem is not present when adding all the attachments at once.

I want implements new buttons

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

  • Currently not compatible with Advanced BBcode Box
  • And not compatible with CodeBoxPlus

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 ;)

Image with specific dimensions not parsed in posts

When adding an image with specified dimensions then though it shows in the editor but not in the post.

The above makes sense since the bbcode generated is e.g. for width and height to 200px [img=200x200]ImageURL[/img] and the built-in img bbcode does not support this format.

Pulling Latest from GitHub Is Still 1.7.8?

Hi Folks,

Not sure what I am doing wrong, but I cannot seem to get 1.7.8.1 (that fixes the sceditor nesting) to download. I click Clone or Download --> Download Zip. I delete the old cosmo directory and replace it with the cosmo directory in the downloaded zip.

When I go back to the forums and edit a nested post, it shows the nesting in the WYSIWYG, but then doesn't parse the code when I view it, for example see:

http://ccbusergroup.com/viewtopic.php?f=4&t=534&p=726#p726

I made a new post and it seems to do half and half - some it processes, some it doesn't:
http://ccbusergroup.com/viewtopic.php?f=15&t=551

Also, in the ACP Extensions Manager it still shows that I am using 1.7.8 not 1.7.8.1 even though I've replaced the file.

Any help is appreciated!

Thanks,
Dave

Named quote is not working

No real additional text needed. When the post includes a names quote it loses the " " inside the tag and the quote does not work anymore.

nested lists fully broken

Tested on 3.1.10 and 3.2.0

when you create a nested list, the output BB Code is wrong!

Output is:

[ul]
[li]eins[/li]
[ul]
[li]zwei[/li]
[ul]
[li]drei[/li]
[/ul]
[/ul]
[/ul]

Instead of:

[ul]
[li]eins
[ul]
[li]zwei
[ul]
[li]drei[/li]
[/ul]
[/li]
[/ul]
[/li]
[/ul]

This example is made in phpbb 3.2, the problem also exists on phpbb 3.1 but
with [list] instead of [li]
when i paste richtext, there will be also some [/ul] tags replaced with [/ol]. no idea why.

I will try to fix it but if someone is more familiar with the codebase it might be more easy to fix for you

Thx!

Plugin problem after upgrade

Upgrade PHPBB from 3.2.8 to 3.3.0

Error:

Exception: The file "/var/www/clients/client1/web58/web/ext/cosmo/sceditor/config/services.yml" does not contain valid YAML: The reserved indicator "@" cannot start a plain scalar; you need to quote the scalar at line 10 (near "- @dbal.conn").

Error on disable plugin

Any idea?

Responsive

Hi,
I have some problems to adapt your extension to Comboot Style (Bootstrap with responsive CSS). after a heavy battle I discover how to edit the full "new post" part, but I couldn't edit the "fast answer" section, one of the big problems is that this part doesn't has the full text format , only 2 useless blocks (also the third, that is declared, is vanish). I tried to edit the code directly, finding the part where you declare the class "sceditor-container", but it is extremely dense, it put styles into the html like the "width" (to 102px), blocking my css commands, only changing the width to 100% all my problems could be solved.
I don't understand why you use css into de "html" instead of inside a css file

https://gyazo.com/c8415d178f4c47bb9fcca879942a25c1

SQL-Error on 3.2

I get the following error on phpBB 3.2:

Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'amzecho_phpbb_test2.phpwg_smilies.code' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by [1055]

Editor language is english only

Although SCEditor provides alot languages they are not used by the extension. This results in english texts in the editor.

Create an ACP page for configuration

On this ACP page there should be following configuration options:

  • Use SCEditor for postings
  • Use SCEditor for private messages
  • Use SCEditor for QuickReply
  • Selectable colors
  • Visible Buttons for Fulleditor
  • Visible Buttons for QuickReply

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.