MyBB Community Forums

Full Version: Code- and PHP-tag issue in editor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I haven't found anything about this bug so far....

Use the code- or php-tag and try to paste&copy something inside. That's not possible.
Once you want to paste inside a code- or php-tag, a new code-block will be opened.

​only an example
Try to copy&paste the following part
Lorem ipsum dolor sit amet

This will not result in
only an example
Try to copy&paste the following part
Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet
but in
​only an example
Try to copy&paste the following part
Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet
Note that there are some other issues with copy/past with the editor (something with fonts, was reported already)
OK. I tried to find similar threads by using "editor" and "tag"....
I already created this thread - it is about issue with copy&paste but with fonts etc.

http://community.mybb.com/thread-157491.html

I think this must be fixed in 1.8.0 - annoying issue
I do not think we can do something about it.

you can try too in sceditor page...
same issue happen in http://www.sceditor.com/
this bug is of sceditor, and not of mybb...

better report in github of sceditor https://github.com/samclarke/SCEditor/issues

Edit: I see now list of issues of sceditor, this bug already reported in github of sceditor https://github.com/samclarke/SCEditor/issues/219

And i believe that Mybb forum should use partial mode and not full WYSIWYG mode.
(2014-08-16, 05:00 AM)martec Wrote: [ -> ]I do not think we can do something about it.

you can try too in sceditor page...
same issue happen in http://www.sceditor.com/
this bug is of sceditor, and not of mybb...

better report in github of sceditor https://github.com/samclarke/SCEditor/issues

Edit: I see now list of issues of sceditor, this bug already reported in github of sceditor https://github.com/samclarke/SCEditor/issues/219

And i believe that Mybb forum should use partial mode and not full WYSIWYG mode.

Have other editors been considered or is that a bit too much to do so soon before 1.8 comes out? I don't know what it takes to integrate an editor into MyBB.
Most other editors are too heavy or don't integrate well. It's kind of too late in the cycle to swap editors too.
(2014-08-16, 05:32 AM)Eric J. Wrote: [ -> ]Have other editors been considered or is that a bit too much to do so soon before 1.8 comes out? I don't know what it takes to integrate an editor into MyBB.

all full WYSIWYG editor has bugs, bugs, bugs and bugs...
this is not something that is solved by swapping with another editor...

this is not something easy to solve, most likely need edit too core file of editor...
but i will try made something here with paste in textarea of popup before put in editor to avoid this issue...
fixes code: https://github.com/martec/mybb/compare/m...e?expand=1

show dropdown textarea like in xenforo and ipboard etc... to first past code in textarea of dropdown to after insert in editor. With this, avoid this issue...
Nice work martec Smile I'll have to have a look at that when I get home.
Pages: 1 2