Git Product home page Git Product logo

inputfieldckeditor's People

Contributors

apeisa avatar ryancramerdesign avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

inputfieldckeditor's Issues

Toolbar gets disabled

I have a strange issue on my xampp localhost environment. I have setup inline editing mode and I can able to use toolbar when I am editing contents and able save contents successfully. After doing quite of bit of time editing and saving, my toolbar gets disabled and I cannot able to use it to style on contents in the field but the another field with inline editing mode on the same page shows toolbar fine. I logged out out, closed browser and went back to same field and I still have same issue. Even I changed field setting to regular mode and I got no contents and disabled toolbar. I switched back to TiinyMCE and it works fine.

Javascript errors in inline mode

Hi Ryan,

sorry to bother you again, but when using the current version of the module in inline mode, I get a lot of strange JS errors like Cannot read property 'br' of undefined or Cannot read property 'undefined' of undefined.

There are no problems like this in my commit from PR #6, so the must somehow stem from the other changes you made in ed5b31e.

I'm going to look further into this in the next days.

InputfieldCKEditor inline mode conflicts with JqueryCore module

I try to use CKEditor and JqueryCore modules at the frontend and it conflicts.

Reproduce:
Generate a form with a ckeditor inline field via form api and also load JqueryCore module.

Uncaught TypeError: undefined is not a functionInputfieldCKEditor.js?v=128:90 (anonymous 
function)JqueryCore.js?v=183:2 v.event.dispatchJqueryCore.js?v=183:2 o.handle.u

Without JqueryCore module loaded all works fine.

Grammer issue

I know this is pedantic, but:

This is more faster and more efficient

Anchor button doesnt work

When pressing the anchor button it triggers a transparent layer but further nothing happens. No javascript errors what so ever. A page reload is needed to be able to continue.

Problem with styles.js

If I add a custom styles.js and point to it from my field's settings, the styles dropdown gets greyed out. Pretty sure I've got everything set up correctly with path to the file and the name in the settings matching the name in the file itself.

So I thought I'd try editing CKEditor's own styles.js but when I do, nothing changes in the CP.

This is with the latest versions of the module and Processwire.

CKeditor throws an error here and does not load.

The CKeditor throws an error, unfortunatly, and does not show on the PW edit pages here. (seen in SAFARI Mac and Firefox):

Error] TypeError: 'undefined' is not an object (evaluating 'a.attributes')
style (ckeditor.js, line 423)
init (ckeditor.js, line 753)
(anonyme Funktion) (ckeditor.js, line 235)
n (ckeditor.js, line 215)
load (ckeditor.js, line 215)
(anonyme Funktion) (ckeditor.js, line 234)
(anonyme Funktion) (ckeditor.js, line 222)
(anonyme Funktion) (ckeditor.js, line 220)
n (ckeditor.js, line 215)
r (ckeditor.js, line 215)
o (ckeditor.js, line 215)
(anonyme Funktion) (ckeditor.js, line 216)

Note: The fields in question are converted, not new. Maybe that is important:
The field had been TinyMCE fields before, which worked. Today I switched to CKE (latest module, latest purifier module, latest PW dev).

Am I the only one with this?

Bad enterMode

The configuration of the enterMode has a flaw that causes some bugs like preventing someone from pasting particular formatted MS Word text.

The enterMode is set in PHP as follows:

        $config = array(
            ...
            'enterMode' => 'CKEDITOR.ENTER_P',
            ...
            );

The problem there is that json_encode puts that value in quotes:

"enterMode":"CKEDITOR.ENTER_P"

But it's really a constant and not a string. That leads to some rare errors.
You can't change that behaviour of json_encode, so I see two options at the moment:

  • Change 'CKEDITOR.ENTER_P' to 1 (as this is the value of that constant, but this wouldn't be future proof in my eyes)
  • Move that enterMode config somewhere else to prevent it from being processed by json_encode

Not possible for links to be opened in new tab in inline mode

Hello Ryan,

thanks for this great module in the first place. I just recognized one slight issue that occurs to me, when I use the Inputfield in inline mode:

If i set an anchor to be opened in a new window/tab, this is not persisted to the database. The HTML is correct right after editing (checking with the CKEditor HTML view), but after saving the page this is lost again.

I'm pretty sure, that this is caused by a too strict configuration of the HTMLPurifier module, but didn't have enough time to look further into it until now.

With kind regards,
Marc

Edit: I think this can be fixed by setting Attr.AllowedFrameTarget to array('_target') before purifying, can't test it at the moment, though,

Disabling auto inline mode

At the moment it seems that CKEditor is automatically adding inline tools for all textarea instances with contenteditable attribute set to true. Please correct me if I'm wrong, but this doesn't seem like correct behaviour?

I stumbled into this while working on proof-of-concept Trumbowyg inputfield, which also uses contenteditable. The problem is that unless I add "CKEDITOR.disableAutoInline = true;" into it's JS file, CKEditor keeps adding it's own toolbar on top of Trumbowygs.. :)

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.