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

Using textable components #160

Open
mval1002 opened this issue Dec 16, 2019 · 5 comments
Open

Using textable components #160

mval1002 opened this issue Dec 16, 2019 · 5 comments
Labels

Comments

@mval1002
Copy link

I've been trying to find a way to insert placeholder text into my template all day. I spent a long time trying to use the insertHTML method of the RTE, which I had some success with, but I couldn't restore the cursor position after closing the popup. Everything I tried, the cursor would jump to the beginning.

I then came across the textable property mentioned on the main GrapesJS git here: GrapesJS/grapesjs#481 and on this mjml plugin git here: #32

That does not seem to be cooperating either. I'm able to drag the component to the template, but it's then completely unusable. I can't move it, change it, delete it, or anything. It seems to only add to the column and not the text blocks, which I imagine is a part of the issue. Presumably, that's due to a difference between normal Text components and MJ-Text components, but I have no idea how to resolve that.

If anyone has any advice, I'd love to hear it! I'm indifferent to doing this through the textable components or through the RTE insert, so any clues to making either one work would be great

@jcze91
Copy link

jcze91 commented Jan 16, 2020

Hello, did you had any news on the way to do it via textable components ?

@mval1002
Copy link
Author

No, unfortunately, nothing I've tried has solved the problem I'm facing. Either with textable components or a text editor extension.

@DRoet DRoet added the question label Jul 17, 2020
@AlexanderFinkbeiner
Copy link

A solution I could think of is, to override the default Text.js Component with a new custom component which is similar to the Text Component from the root project, that it can handle the textable property in an mj-text element. But I have no idea how this could look like. Anyone else an idea?

@Bran72
Copy link

Bran72 commented Mar 23, 2022

Hello everyone !
Did u have some news about this ?

I'm able to create a textable component, which could be dragged into an <mj-text>, but I can't drag it between words / letters: it's always putted on the beginning 👎🏻
(Of course it's fully working in a classic HTML template, without the MJML plugin).

I tried the solution proposed by @AlexanderFinkbeiner but I can't make it working... Any ideas @artf ?

Thanks and have a nice day !

@LcsGa
Copy link

LcsGa commented Nov 15, 2023

Hi @artf! Almost 4 years later, it doesn't seem to be fixed...
And there is a similar issue there opened more recently #337

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

6 participants