Opened 14 years ago
Closed 14 years ago
#6694 closed Bug (invalid)
Protected source code not displayed in WYSIWYG mode
Reported by: | fournaise | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.4.2 |
Keywords: | Cc: |
Description
If you enter in source view mode this code :
<table border="1"> <tbody> <tr> <td> test</td> </tr> </tbody> </table>
and switch to WYSIWYG mode the table is displayed.
Now, if you add in config.js this following instructions :
config.protectedSource.push(/<table[\s\S]*?table>/g);
The same source code is ok in source view mode but in WYSIWYG mode, nothing is displayed !?
Is it the expected result ? Why not render the source code ? What do you think about have an transparent layer on the element to avoid modification ? do you plan to release an placeholder plugin or placeholder on protected source ?
True.
We're sorry that the documentation of CKEDITOR.config.protectedSource is a bit confused, it actually does preventing codes that are protected to be displayed in WYSIWYG.
Yes, we've already releases this feature in the past 3.4 version.
Please use our forums for discussions and community support.