Insert/edit image in Tiny MCE

This is the place to discuss bugs that have been found in the most recent version of PivotX. Posting bugs will ensure that the Development Team is aware of them and that they will be addressed when resources are available.

Insert/edit image in Tiny MCE

Postby Samson » Sat May 14, 2011 12:17 pm

In the WYSIWYG editor works inserting and editing images not correctly. The Editor accepts no alignment, for example left or right.

In editor:
insert_image.jpg
in editor
insert_image.jpg (125.32 KiB) Viewed 6203 times

In browser:
insert_image2.jpg
insert_image2.jpg (37.47 KiB) Viewed 6203 times

In HTML:
Code: Select all
<img src="/images/vereine/logo_rw-neuenhagen.gif" width="100" height="100" />

This is not correct. Correct is:
Code: Select all
<img src="/images/vereine/logo_rw-neuenhagen.gif" width="100" height="100" style="float:right" />

The editor deleted ever style="float:right". Bug or feature?
Regards
Frank
My blog (with PivotX) - and my actual projects: German Chess Union, Berlin Chess Union (with phpCMS, all in german)
Samson
 
Posts: 38
Joined: Sun Apr 10, 2011 1:18 pm
Location: Berlin, Germany

Re: Insert/edit image in Tiny MCE

Postby Harm10 » Sat May 14, 2011 1:26 pm

What version are you using?
And it looks like you used the standard button of the editor in stead of the add Pivotx image button (more to the right).
Could you please try whether the alignment is correct when you use that button?
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Insert/edit image in Tiny MCE

Postby Samson » Sun May 15, 2011 12:17 am

PivotX 2.2.5
I search with Google and i found an option in TinyMCE: Link in german.
TinyMCE deleted automatic the html-code in default-option.

PivotX-image is not my choice in this case. PivotX-image can not set height and width.
Regards
Frank
My blog (with PivotX) - and my actual projects: German Chess Union, Berlin Chess Union (with phpCMS, all in german)
Samson
 
Posts: 38
Joined: Sun Apr 10, 2011 1:18 pm
Location: Berlin, Germany

Re: Insert/edit image in Tiny MCE

Postby Samson » Sun May 15, 2011 7:30 am

The solution:

Open /pivotx/templates_internal/inc_init_tinymce.tpl and go to row 19 and patched this:
Code: Select all
"span[id|class|align|style],img[class|src|border|alt|title|hspace|
vspace|width|height|align|onmouseover|onmouseout|name],"+

to
Code: Select all
"span[id|class|align|style],img[class|src|border|alt|title|hspace|
vspace|width|height|align|onmouseover|onmouseout|name|style],"+
Regards
Frank
My blog (with PivotX) - and my actual projects: German Chess Union, Berlin Chess Union (with phpCMS, all in german)
Samson
 
Posts: 38
Joined: Sun Apr 10, 2011 1:18 pm
Location: Berlin, Germany

Re: Insert/edit image in Tiny MCE

Postby Harm10 » Sun May 15, 2011 8:29 am

Samson wrote:PivotX-image is not my choice in this case. PivotX-image can not set height and width.
The same button cannot set onmouseover for example........... ;) It is not meant for that. Just to be able to put a previously uploaded image into your entry/page.
If you want to build your own html through the editor your solution is the way to go. You can extend any of those parms to your liking.
Good that you found (and posted) the solution yourself! ;)
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)


Return to 2.x Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron