akzhan/jwysiwyg — Issue #282: Edit Code Fragments
Author: marten78
Created: 2012-02-13 18:43:59+00:00
State: open

Users are entering some code via jwysiwyg to discuss it. So after submitting, the saved text consists of code that formats the text (like

and so on) and the other code fragments, that should not be interpreted as HTML element. The distinction between this two kinds of code works well after the submitting. Real formatting code is saved as

for example, the code to discuss is saved as <h2, so that it can be included in my page very well.

The problem occurs when I want to edit the saved text. For that, I am loading the text to jwysiwyg again. But unfortunately, after that, the distinction is away and suddenly also the code-fragments that should only displayed as code are interpreted as HTML elements, so that the code is away.

Is there a way to re-edit this elements like it should be?