Opened 13 years ago

Closed 13 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 ?

Change History (1)

comment:1 Changed 13 years ago by Garry Yao

Resolution: invalid
Status: newclosed

Is it the expected result ?

True.

Why not render the source code ?

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.

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 ?

Yes, we've already releases this feature in the past 3.4 version.

Please use our forums for discussions and community support.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy