Giter VIP home page Giter VIP logo

Comments (6)

boutell avatar boutell commented on June 23, 2024

Could be. You'd have to check what's flowing over the network as you edit
(via the network panel in chrome inspector) to know if it's ckeditor not
submitting them, or sanitizeHtml stripping them.

apostrophe-blog-2's importer is smart enough to handle video shortcodes and
turn them into separate A2 widgets. Nothing in there to handle iframes that
are hanging out in the markup though.

Our

On Wed, Jun 22, 2016 at 12:51 PM, Matt Crider [email protected]
wrote:

I imported a bunch of blog posts from Wordpress that have iframe embeds in
them (for videos). They appear fine in apostrophe, but when i click on the
editor, they all get stripped away. I set

sanitizeHtml: {
allowedAttributes: false,
allowedTags: false,
},

in app.js and also set allowedContent: true like this:

'apostrophe-editor-2': {
plugins: [
{ name: 'autocorrect', path: '/editor/plugins/autocorrect/' }
],
config: {
allowedContent: true
}
}

But nothing is working. Am I right in thinking that this is a CKEditor
issue?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#34, or mute the
thread
https://github.com/notifications/unsubscribe/AAB9fW8jqRxgKOJl-bBnLiLbWdGn0_Mdks5qOWf0gaJpZM4I7_it
.

*THOMAS BOUTELL, *SUPPORT LEAD
P'UNK AVENUE | (215) 755-1330 | punkave.com

from apostrophe-editor-2.

mcrider avatar mcrider commented on June 23, 2024

Yeah, definitely ckeditor stripping the tags before it sends it over the network. Will investigate further.

from apostrophe-editor-2.

boutell avatar boutell commented on June 23, 2024

You might consider transforming these into Apostrophe widgets by using our
split-html module the same way we do in wordpress.js of the
apostrophe-blog-2 module.

On Wed, Jun 22, 2016 at 2:08 PM, Matt Crider [email protected]
wrote:

Yeah, definitely ckeditor stripping the tags before it sends it over the
network. Will investigate further.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#34 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAB9fW1U0keo5Fcndf_y0yRvJhbCT5iSks5qOXo6gaJpZM4I7_it
.

*THOMAS BOUTELL, *SUPPORT LEAD
P'UNK AVENUE | (215) 755-1330 | punkave.com

from apostrophe-editor-2.

mcrider avatar mcrider commented on June 23, 2024

So if I add CKEDITOR.config.allowedContent = true; to apostrophe-editor-2/node_modules/apostrophe-editor-2/public/js/editor.js::24 everything works. Are you sure the config option passed into from app.js is being picked up by ckeditor? I don't seem to see it getting merged in anywhere.

from apostrophe-editor-2.

boutell avatar boutell commented on June 23, 2024

Not sure what option you're passing in app.js, exactly. But I just did this
successfully in a project:

'apostrophe-editor-2': {
config: {
removeButtons: 'Underline'
}
},

Note that support for this is recent in the apostrophe-editor-2 module.

On Wed, Jun 22, 2016 at 2:46 PM, Matt Crider [email protected]
wrote:

So if I add CKEDITOR.config.allowedContent = true; to
apostrophe-editor-2/node_modules/apostrophe-editor-2/public/js/editor.js::24
everything works. Are you sure the config option passed into from app.js is
being picked up by ckeditor? I don't seem to see it getting merged in
anywhere.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#34 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAB9fVKMLBEbeySkHqW1yVAuYJBcWnthks5qOYMOgaJpZM4I7_it
.

*THOMAS BOUTELL, *SUPPORT LEAD
P'UNK AVENUE | (215) 755-1330 | punkave.com

from apostrophe-editor-2.

mcrider avatar mcrider commented on June 23, 2024

YES I had to update a couple points. Thanks again Tom!

from apostrophe-editor-2.

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.