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)

codeplugin.zip (4.6 KB) - added by datalink 14 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 14 years ago by Jakub Ś

Status: newpending

I can post more code when needed.

Could you provide us with more detailed example or a ready to use file?

Changed 14 years ago by datalink

Attachment: codeplugin.zip added

comment:2 Changed 14 years ago by datalink

Attach my plugin for testing.

comment:3 Changed 14 years ago by Jakub Ś

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 datalink

Resolution: invalid
Status: pendingclosed

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.

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