Comments (6)
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 setsanitizeHtml: {
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.
Yeah, definitely ckeditor stripping the tags before it sends it over the network. Will investigate further.
from apostrophe-editor-2.
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.
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.
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.
YES I had to update a couple points. Thanks again Tom!
from apostrophe-editor-2.
Related Issues (20)
- test issue
- LESS warning about @white being undefined in editor.less
- Styles not being saved? HOT 3
- Add Content buttons in modals not displaying a menu
- Controls atop text HOT 1
- Cannot click on text that is in the same vertical area as the controls (there is an acceptable workaround) HOT 2
- Too many page versions
- Need a friendlier UI for rolling back changes at the area level HOT 1
- Controls go away and do not come back
- Where are the editable singletons on the sandbox home page? It's fun to guess! Wait, it's not that much fun. HOT 4
- lockups can happen without specifying them in aposArea options HOT 1
- Hovering over the drop-down also triggers visibility of underlying buttons, which leads to annoying accidental clicks HOT 2
- Left / Right button align gets very ugly on narrower columns HOT 4
- Our custom ckeditor theme is a hot mess in Firefox HOT 1
- Test apostrophe ckeditor theme in IE
- Schema Widgets do not save when put into a lockup HOT 3
- Can't include CKeditor plugin
- Add Content button should appear on bottom of area aswell HOT 7
- Error - node_modules/moog/index.js:317 if (key.substr(0, 2) === '__') { HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apostrophe-editor-2.