Hello.
I am trying to add an advanced borders feature to the image dialog. That feature would allow to set the border width, style and color of the image.
To do that I have to parse the border style of the original image. I am doing it with regular expressions but it is a bit annoying because there are too much possibilities to set the borders style:
border: 1px solid #000;
border: thin dashed rgb(0,0,0);
border: 1ex solid rgb(0%,0%,0%);
border-top-width: 1em;
border-bottom: none;
etc....
Do you know a simpler method to parse the original image borders?
Thanks in advance.
I am trying to add an advanced borders feature to the image dialog. That feature would allow to set the border width, style and color of the image.
To do that I have to parse the border style of the original image. I am doing it with regular expressions but it is a bit annoying because there are too much possibilities to set the borders style:
border: 1px solid #000;
border: thin dashed rgb(0,0,0);
border: 1ex solid rgb(0%,0%,0%);
border-top-width: 1em;
border-bottom: none;
etc....
Do you know a simpler method to parse the original image borders?
Thanks in advance.
RE: Image dialog: advanced borders
I have added a new tab to the image dialog to set image borders and image margins.
It is posible to set a global border (width, style and color) or particular ones (top, right, bottom and left).
The same apply to the margins.
If you want to try it you can download the affected files from the patches page.
the files are:
editor/dialog/fck_image.html
editor/dialog/fck_image/fck_image.js
editor/lang/en.js
I have translated it to spanish but I haven't uploaded that file.
Good bye.