cYbercOsmOnauT / wysiwygsceditorphpbb

8 stars 11 forks source link

in-line attachment bbcodes not changed #25

Open renx123 opened 7 years ago

renx123 commented 7 years ago

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.

cYbercOsmOnauT commented 7 years ago

Thanks! I will take a deeper look into this problem.