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

Video being displayed in editor but not on the outputted string #95

Closed
andrewsumichan opened this issue Feb 19, 2018 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@andrewsumichan
Copy link

Hello everyone.

My name's Andrew. I discover this plugin 5 days ago and really amazed by how simple yet interactive this plugin work.
I use this editor to edit a page design and integrate with wordpress, everything was cool . image being displayed and all. I even change the upload mechanism to integrate with gallery plugin to suit my need. best of the project is the code was super simple and easy to change. Thanks to the author! I saluted you.

However it seems I stuck at video component.
The thing is, I pre-loaded this template below to <div id="content-area"> using static html (not via jquery func)

<section>
<div class="row">
<div class="col-sm-12" data-type="container-content">
<section data-type="component-video">
<video width="100%" height="" controls="" style="background: #222;" __idm_id__="846885890" src="files/miyagi@2430w.mp4">
<source src="http://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
<source src="http://www.w3schools.com/html/mov_bbb.ogg" type="video/ogg">
</video>
</section>
</div>
</div>
</section>

The editor seems render it fine, but when I'm going to save the page content to the database, It cannot catch the video (no change to the video).

when I use $('#content-area').keditor('getContent') to get the content what I get is :

<div class="row">
          <div class="col-sm-12" data-type="container-content">
          <section data-type="component-video"></section>
          </div>
</div>

Did I miss some point ?

@ducdhm ducdhm self-assigned this Feb 25, 2018
@ducdhm ducdhm added the bug label Feb 25, 2018
@ducdhm ducdhm added this to the 1.1.6 milestone Feb 25, 2018
@ducdhm
Copy link
Contributor

ducdhm commented Feb 25, 2018

Fixed!

@ducdhm ducdhm closed this as completed Feb 25, 2018
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

2 participants