Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageTag config -> Inline images #10

Closed
ray-001 opened this issue Jan 30, 2018 · 1 comment
Closed

ImageTag config -> Inline images #10

ray-001 opened this issue Jan 30, 2018 · 1 comment
Assignees
Labels

Comments

@ray-001
Copy link

ray-001 commented Jan 30, 2018

Hi,

I'm trying to add an image in my paragraph with redactor, but he creates a new figure element outside the paragraph tag. Is it possible to place it in the paragraph tag? I've read on https://imperavi.com/redactor/docs/settings/images/#setting-imageTag that there should be a way to set the imageTag.
I've set this to span in my redactor config:

{
"buttons": ["formatting", "bold", "italic", "unorderedlist", "orderedlist", "link", "image"],
"plugins": ["source", "fullscreen"],
"formatting": ["p", "h1"],
"toolbarFixed": true,
"linebreaks": true,
"imageTag": "span"
}

When I add an image to the redactor field it still wraps a figure tag around it ->

<div class="redactor-layer redactor-styles redactor-layer-img-edit redactor-in" aria-labelledby="redactor-voice-0" role="presentation" id="redactor-uuid-0" contenteditable="true" spellcheck="true" dir="ltr" style="min-height: 40px;">

<p>Test</p><figure><img src="http://localhost/uploads/content/Gear.png#asset:657">​</figure>

</div>

Craft version: Craft Pro 3.0.0-RC7.1
Redactor version: 1.0.1

@ray-001
Copy link
Author

ray-001 commented Mar 2, 2018

Hi @brandonkelly, do you have an update regarding this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants