Giter Site home page Giter Site logo

Initialization ckeditor about ckeditor HOT 5 CLOSED

grapesjs avatar grapesjs commented on May 26, 2024
Initialization ckeditor

from ckeditor.

Comments (5)

artf avatar artf commented on May 26, 2024

GrapesJS can't figure it out by itself when you expect to start the Text Component so it's just trying "somehow" to guess it. In this case, it treats those <span>s as individual Text Component (the error is thrown by CKEditor just because it doesn't like to launch the editor on tags as <span>, <a>, etc.) but I think in your case you just want a single text component. You might help GrapesJS parsing with this trick:

<td>
  <!-- Let the editor know about the Text Component -->
  <div data-gjs-type="text">
    ... 
   <span> Oferta válida até o ... </span>
    ...
  </div>
</td>

from ckeditor.

gitonspace avatar gitonspace commented on May 26, 2024

@artf , It worked perfectly, thank you very much. How can I use ckeditor to insert the link into the image? I would like to use this option, but the ckeditor is not initialized in the images.

from ckeditor.

artf avatar artf commented on May 26, 2024

Did you try using 'Link Block' (available in demo)? You can add the link and then drop whatever you want (eg. images)

from ckeditor.

gitonspace avatar gitonspace commented on May 26, 2024

@artf , Yes, I did, but I did not find it very practical. Sometimes the layer of the image, due to overlapping it is bad to select the link block.

In my opinion, it is more practical you insert the image and in the properties insert a link ... my ideal would be something of the type the attachment
screen shot 2017-05-24 at 8 51 37 pm

from ckeditor.

artf avatar artf commented on May 26, 2024

Totally agree with you, but at the moment it's not possible, I have to create a new component for this purpose

from ckeditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.