Currently I'm using dataFilter from the editors dataProcessor to intercept element creation and build fake parser elements.
However, I want to be able to listen to certain events of the IMG element that represents the fake.. given that the object I return is a 'definition' for the actual html processor to use to build the REAL element, how exactly can I setup events for the final element? well.. I thought I could trick it by using event attributes, but I found that ckeditor specifically intercepts these attributes and renames them.
So how can I handle creation of the actual element?
Additionally, why does the 'fakes' system not allow me to specify what my fake looks like? by default it builds an IMG tag, which doesn't really make sense.
Cheers in advance.
However, I want to be able to listen to certain events of the IMG element that represents the fake.. given that the object I return is a 'definition' for the actual html processor to use to build the REAL element, how exactly can I setup events for the final element? well.. I thought I could trick it by using event attributes, but I found that ckeditor specifically intercepts these attributes and renames them.
So how can I handle creation of the actual element?
Additionally, why does the 'fakes' system not allow me to specify what my fake looks like? by default it builds an IMG tag, which doesn't really make sense.
Cheers in advance.
Re: Handling actual element creation on data filtering
I appreciate you have a especially hard task to try and standardize what is probably the most inconsistent and incapable system of 'html', so I didn't expect the code base to be pretty, but I think you could do yourselves a lot of favours by dealing with quirks at one level, and building well designed unquirky systems above these abstractions.