iframe in open editor

11 views
Skip to first unread message

kevin uittenbosch

unread,
Jan 6, 2015, 4:15:54 AM1/6/15
to ariad...@googlegroups.com
Hi muze,

I am trying to save a piece of iframe code from youtube in the open editor, but somehow ariadne converts the <iframe> tag into <emframe> ??????

so weird, because it's only 'replacing' the opening tag and leaves the closing tag </iframe>

regards 

kevin

Auke Van Slooten

unread,
Jan 7, 2015, 5:09:04 AM1/7/15
to ariad...@googlegroups.com
Op dinsdag 6 januari 2015 10:15:54 UTC+1 schreef kevin uittenbosch:
Hi muze,

I am trying to save a piece of iframe code from youtube in the open editor, but somehow ariadne converts the <iframe> tag into <emframe> ??????

so weird, because it's only 'replacing' the opening tag and leaves the closing tag </iframe>

This is a known bug in the YUI editor. SInce YUI 2 isn't supported anymore I've fixed it myself. If you update the file www/js/yui/editor/editor.js in ariadne from the latest SVN, this bug should be gone.

For the curious, cleanHTML() - which is called when switching to source code view - uses regular expressions to translate certain tags into other tags. This is generally a bad idea, but especially if you don't check for word boundaries on tags... the fix I made just added the word boundary '\b' after each tag name so that it will only match the exact tag.

regards,
Auke van Slooten
Muze

kevin uittenbosch

unread,
Jan 15, 2015, 5:40:59 AM1/15/15
to ariad...@googlegroups.com
Thanks :) the update is planned...

do you have some kind of bug report website? 

Auke van Slooten

unread,
Jan 15, 2015, 7:30:34 AM1/15/15
to ariad...@googlegroups.com
On Thursday, January 15, 2015 at 11:40:59 AM UTC+1, kevin uittenbosch wrote:

do you have some kind of bug report website? 

Yes, it's called Github :)


There are no issues there yet, the github repository is currently slaved to our Subversion repository, but starting with the next release, we'll switch to Github as our main development repo, svn.muze.nl will then be slaved to github instead. But you can already add issues in Github.

~
Auke 
Reply all
Reply to author
Forward
0 new messages