Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Editor: Embedding youtube links on vanilla 2.2.1 #4114
Comments
linc
added
the
Backport
label
Jun 17, 2016
linc
added this to the Sprint 15 milestone
Jun 17, 2016
linc
assigned
initvector
Jun 17, 2016
|
I am unable to recreate this issue in a fresh 2.2.1 install. Steps taken to reproduce:
The YouTube embed shows up when I first create the post, as well as when I edit it. Do you have any other plug-ins or applications enabled that may be causing this issue? |
CrazyLemon
commented
Jun 23, 2016
|
Here's a 'live' example https://www.ubuntu.si/forum/discussion/6500/just-testing |
|
I'm still unable to create the issue. Would it be possible for you to provide the contents of The YouTube embed is generated during rendering. It isn't saved as part of the post record. Since I can't recreate the issue, it might be easier for me to determine what's going on if I can see what's happening to your post's raw |
CrazyLemon
commented
Jun 23, 2016
|
Here you go
|
|
Thanks! That is very strange. I have a few more questions...
|
CrazyLemon
commented
Jun 23, 2016
•
And format for all those comments/discussions is Wysiwyg Also..there's a bug with githubs editor - you can't start from 3 and go backwards but thats not vanilla issue |
CrazyLemon
commented
Jun 23, 2016
•
|
It definitely looks like your site is generating content that shouldn't be generated until the post is ready to be rendered. I am able to recreate the issue on your forum, although I still cannot create it elsewhere. I can see what is being delivered by /post/editcomment has the YouTube embed code in it, when it shouldn't. Would you be willing to provide your site config file with all potentially sensitive information removed (database credentials, email addresses, API keys, etc.)? |
CrazyLemon
commented
Jun 23, 2016
|
I'm able to recreate it on my local testing server where i developed that site. |
initvector
referenced this issue
Jun 23, 2016
Merged
Fix ForceWysiwyg check in Advanced Editor causing markup to generate early #4130
|
That's what I needed! Thanks! With your config, I was able to recreate the issue and have a fix pending review. |
CrazyLemon
commented
Jun 23, 2016
|
Awesome..i'm just glad it wasn't my fault |

CrazyLemon commentedJun 17, 2016
•
Edited 1 time
-
CrazyLemon
Jun 17, 2016
So lets say you just paste a link (i tested with timestamp and without) into your advanced editor.
You hit Post and there it is. Your embedded youtube link shows you a thumbnail of a video but you see a typo right tehre.
You edit your post and save the changes and its all broken now. In html view you see
<a rel="nofollow" target="_blank"><img width="640" alt="" height="385"></a>and no youtube link anywhere.Basically very similar to #3382
Advanced editor: Version 1.7.2