HT202066: Creating ePub files with Pages

Learn about Creating ePub files with Pages
mikedsz

Q: using contenteditable in iBooks

Hi,

I'm having an issue using the content editable fields in the epub. For some reason the content editable doesn't seem to work on iBooks for Mac OS.

 

This is what I'm using in the html file.

<p contenteditable="true">&#160;</p>

 

And when I open the epub on iBooks on MacOS it doesn't allow me to type anything in there.

 

Can someone help to fix this?

 

Thanks,

Mike

MacBook, iOS 8

Posted on Mar 19, 2015 10:18 PM

Close

Q: using contenteditable in iBooks

  • All replies
  • Helpful answers

  • by Rajesh_Tamilan,

    Rajesh_Tamilan Rajesh_Tamilan Sep 20, 2016 12:15 AM in response to mikedsz
    Level 1 (12 points)
    iBooks
    Sep 20, 2016 12:15 AM in response to mikedsz

    The below script will enable the content editable attribute in Mac systems. Tested, working fine.

     

    $(selector).observe('touchstart', function(event) {

        var element = event.element();

        if (element.disabled)

            element.disabled = false;

        element.focus();

        event.stop();

    });

  • by gesttev,

    gesttev gesttev Oct 1, 2016 4:45 AM in response to mikedsz
    Level 1 (13 points)
    Apple Pay
    Oct 1, 2016 4:45 AM in response to mikedsz

    Was the epub manual created? I dont know if this will be the issue, but what is the doctype?

    I might try to test it myself to find out.