shoha99 / concerto-platform

Automatically exported from code.google.com/p/concerto-platform
0 stars 0 forks source link

CKeditor deletes concerto variables from inputs #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. make an html template which contains the text:

<p>
    <input name="gg" type="checkbox" value="1" {{checked1}} /></p>

2. The idea is, that the concerto variable checked1 can be used to check the 
box when the template is loaded by setting it to "checked", or unchecked, by 
setting it to "".

3. When one switches to the WYSIWYG side of the CKeditor, the {{checked1}} is 
__removed__ from the html template. Hence editing source and WYSIWYG is 
impossible, you can only use source.

What is the expected output? What do you see instead?

I expected the concerto variable to be still there when after switching back 
and forth between souce and WYSIWYG. Obviously CKeditor "cleans" the code but 
really shouldn't.

What version of the product are you using? On what operating system?

concerto 3.2

Original issue reported on code.google.com by philipp....@googlemail.com on 3 Jun 2012 at 9:20

GoogleCodeExporter commented 8 years ago
Workaround: use javascript in HTML template source:

<script>
  $("input[name='insert_input_name']").attr('checked', true);
</script>

Original comment by LisPrzem...@gmail.com on 5 Jun 2012 at 9:39

GoogleCodeExporter commented 8 years ago

Original comment by LisPrzem...@gmail.com on 6 May 2013 at 5:29