[CKEditor Dev] #6694: Protected source code not displayed in WYSIWYG mode

157 views
Skip to first unread message

CKEditor

unread,
Nov 18, 2010, 12:22:00 PM11/18/10
to ckeditor...@googlegroups.com
#6694: Protected source code not displayed in WYSIWYG mode
-----------------------+----------------------------------------------------
Reporter: fournaise | Type: Bug
Status: new | Priority: Normal
Component: General | Version: 3.4.2
Keywords: |
-----------------------+----------------------------------------------------
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 ?

--
Ticket URL: <http://dev.ckeditor.com/ticket/6694>
CKEditor <http://ckeditor.com/>
The text editor for Internet

CKEditor

unread,
Nov 19, 2010, 3:00:32 AM11/19/10
to ckeditor...@googlegroups.com
#6694: Protected source code not displayed in WYSIWYG mode
-----------------------+----------------------------------------------------
Reporter: fournaise | Type: Bug
Status: closed | Priority: Normal
Milestone: | Component: General
Version: 3.4.2 | Resolution: invalid
Keywords: |
-----------------------+----------------------------------------------------
Changes (by garry.yao):

* status: new => closed
* resolution: => invalid


Comment:

>Is it the expected result ?

True.


>Why not render the source code ?

We're sorry that the documentation of
[http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.protectedSource
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
[http://ckeditor.com/blog/CKEditor_3.4_released 3.4] version.


Please use
[http://cksource.com/forums/viewforum.php?f=11&sid=afed2ceaba81989292b0b63124f62ee9
our forums] for discussions and community support.

--
Ticket URL: <http://dev.ckeditor.com/ticket/6694#comment:1>

Reply all
Reply to author
Forward
0 new messages