Bug #33010

Work Package #45020: Content Editing Stability and Features

Editing of HTML elements with javascript causes problems

Added by Rens Admiraal over 1 year ago. Updated about 1 month ago.

Status:New Start date:2012-01-06
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Votes: 0

Description

When an HTML element with inline javascript is edited this fails because the script is executed. We should come up with some kind of concept for this.

inlineJSatHTML.png (48.6 kB) Adrian Föder, 2012-08-27 08:39

History

Updated by Karsten Dambekalns 10 months ago

  • Project changed from Base Distribution to TYPO3.Neos

Updated by Adrian Föder 9 months ago

ah, maybe that's the issue I had... I have inline JS; and as soon as clicking the "HTML Editor" button on the right, the editor opens obviously empty, creating such an (empty) popup:

 1 <div id="" class="popover t3-popover-fixed t3-ui active" style="top: 18px; left: 527px; position: fixed; z-index: 10090; display: block;">
 2     <div class="triangle left" style="top: 138px;"/>
 3     <div class="header">
 4         <div>HTML Editor</div>
 5     </div>
 6     <div class="content">
 7         <div class="aloha-block-do-not-deactivate t3-htmleditor-window"></div>
 8     </div>
 9 </div>
10 

At the same time, I get an JavaScript error "syntax error" ]]> at CSS.js line 182 (see attached file).

Maybe a protective invocation wrapper can be applied to inline JS functions, being only executed when NOT in that HTML editor context...

Updated by Aske Ertmann about 1 month ago

  • Parent task set to #45020

Also available in: Atom PDF