Opened 14 years ago
Closed 14 years ago
#7563 closed Bug (invalid)
htmlParser
Reported by: | datalink | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.5.3 |
Keywords: | Cc: |
Description
Bug or new feature request, I don't know. Please change it.
I write a plugin to show placeholder icons for js and php code. For that I use
return new CKEDITOR.htmlParser.element( 'img', attributes );
This works with js code. But php source is rewrite from
<?PHP echo 'test'; ?>
to
<?php echo=""></?php>
I can post more code when needed.
Attachments (1)
Change History (5)
comment:1 Changed 14 years ago by
Status: | new → pending |
---|
Changed 14 years ago by
Attachment: | codeplugin.zip added |
---|
comment:3 Changed 14 years ago by
I have set 'protectedSource' option for php and JS script tags:
protectedSource : [/<\?[\s\S]*?\?>/gi, /<script[\s\S]*?<\/script>/gi ]
When I used this configuration with your plug-in, CKEditor acted just like you described but when I used CKEditor without your plug-in then the code:
<?PHP echo 'test'; ?>
stayed untouched.
It seems there is mistake in your plug-in.
Are you able to reproduce this issue in clean version of CKEditor (protectedSource has to be set)?
comment:4 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
As far as I know source is protected as first of all. My plugin changes proteted source comments to fake images after wysiwyg is rendering. So ckeditor make changes to valid html. I think this feature is not controllable by a plugin. I close this ticket and make a feature request for it.
Could you provide us with more detailed example or a ready to use file?