Hi,
I am making a custom plugin, and want to use a fake element for that. However, I have two problems with the resizable option. I want to use the fake element for an item that can only have a variable height. I see that is not possible, but that's not really a problem because I thought I can bypass that by setting isResizable to false and set the dimensions from the dialog.
My problems I face are:
- When I set isResizable to false, the fake element ignores the real elements dimensions. As each element can have a different height, I can't set the dimensions using CSS. When I set isResizable to true, the dimensions work fine.
- When I set isResizable to false, the object is still resizable in latest stable version of IE10 and Firefox. In Chrome it is not resizable.
To make the element, I use both these methods:
// to add the element var newFakeImage = editor.createFakeElement( element, 'cke_customPlugin', 'customPlugin', false ); // in the dataFilter: return editor.createFakeParserElement( element, 'cke_customPlugin', 'customPlugin', false );
Does anyone know how to solve this problem? Or is this a bug?
Thanks!