Jump to content

CKEditor – Images, Captions, Positions ...


Bike
 Share

Recommended Posts

Hello everyone!

I am new to PW and at this moment there are these issues that I cannot clearly understand:

1) Image Position
Previously I used TinyMCE and there I could get an image floating left or right by simply selecting it and pressing the text justify buttons from the menu bar. In CKEditor however it just causes the hole paragraphs content to be aligned which results in code like this and of course the image is not floating that way:

<p class="xyz" style="text-align:right"><img alt="" src="someimage.jpg" width="1000" /></p>

Q: Is it possible to add float to images just by clicking the text align buttons? As far as I figured it out the only way to align images is within the image dialouge which I find is pretty inconvenient.

2) Image Caption / Figure / Figcaption
When a title is given to an image it is wrapped inside a figure tag and a figcaption tag is applied. That's fine. But I need the image to be wrapped inside another picture tag for styling reasons (I want to add a shadow png with picture::after). I'd like to end up with this:

<figure><picture><img alt="" src="someimage.jpg" width="1000" /></picture>
<figcaption>Caption there</figcaption>
</figure>

Q: I think I have to modify the plugins code to achieve it, right? If so does anyone knows the file / location?
Q: If a figure tag is placed how would I change its position say to another paragraph? Drag & drop just relocates the image leaving the figure tag where it was. How to reposition the whole thing?
Q: How / where would I enter image description the be shown only in say a lightbox but not alongside the image itself? I thought the textarea provided in the image field could do the job but how to access it from the editor? Even possible?

Well I hope someone understands and I'd be thankful for a clue of any of these questions.

✌️ Bike

 

Edited by Bike
Link to comment
Share on other sites

Moderator note: this is not a module support thread, so I'm moving it to the General Support area of the forum instead. Please keep in mind that the Modules/Plugins area is only intended for module-specific support threads. Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...