Giter VIP home page Giter VIP logo

craft-article's People

Contributors

dependabot[bot] avatar edsardio avatar jacotijssen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

seanpm2001

craft-article's Issues

Adding jQuery link at the bottom of the page

After upgrading to craft 4 and the plugin version to 2.0.1, there are three links to JavaScript. One of them is jQuery causing it to load twice and causing errors. I've attached a screenshot for reference. Please Help.

image

Multiple editors

The plugin fails to work properly when I want to use multiple Article editors on the same page / entry type.

The imperavi docs show how to configure the editor for this scenario, but there doesn't seem to be a corresponding option in the plugin.

Style Background Image Url

Hello,

I created a block for plugin,
But unfortunately background url its not working, in the first time its shows good,
image

but then html purifier add &qout; at the attribute (normal behavior) and after editing article convert background url to unknown path
image

So the problem is we can't edit its work only on create.
Can I disable html purifier and how, or can you give me another solution.

Thanks

Craftarticle.js

Snag_461e80

just upgraded to 4, all work OK. :) just getting this..
Any idea what can be..

Composer conflict with Guzzle

Hi there, and sorry I'm in such a rush. This plugin looked really interesting, but I can't get it installed. There are quite a few composer conflicts because of plugins that are restricted to guzzle 6.x.x, and Article requires 7.

Any suggestions on what to do about this? Can Article work with earlier guzzle versions? I've seen some plugins use a requirement like guzzle: ^6.5|^7.0 (for example).

Cheers, Andrew

Imperavi Article license?

Does this plugin's purchase price include a license to Imperavi's Article product?

The license appears to be $699 -- I ask because the license restrictions make me concerned there could be an issue:

.....

Restrictions

Unless you have been granted prior, written explicit consent from Imperavi LLC, you may not:

  • Use the Software in Open Source projects.
  • Reproduce, distribute, or transfer the Software as a sole product, or portions thereof, to any third party.
  • Sell, rent, lease, assign, or sublet the Software as a sole product or portions thereof.
  • Grant rights to any other person.
  • Use the software in violation of any European Union or international laws or regulations.

Images not getting parsed URL

I have a fresh Craft install with only this plugin loaded, and in there the images are not being parsed with the correct URLs

image

Is this something to set up in a config somewhere?

Editor crashed in preview

Hello,

The editor crashes when i'm using the preview function in craft. At entering the preview mode the arx-editor-frame iframe only return a blank document in the DOM. This stays even after leaving preview. Trying to add content with the '+' button only returns:

article-editor.js?key=##################:955 Uncaught TypeError: Cannot read properties of null (reading 'pageYOffset')

Postgres Error

The SQL being executed was: ALTER TABLE "content" ADD "field_article_vygolump" mediumtext
Error Info: Array
(
    [0] => 42704
    [1] => 7
    [2] => ERROR:  type "mediumtext" does not exist at character 52
)
↵
Caused by: PDOException

SQLSTATE[42704]: Undefined object: 7 ERROR: type "mediumtext" does not exist at character 52

in /home/forge/site/vendor/yiisoft/yii2/db/Command.php at line 1302

ArticleEditor volumes not getting populated except for admin users

Hello I'd like to ask for some help / report an issue we face.

We migrated to Craft 4 a few weeks ago in a project and some editors started reporting issues which is according to our current understanding on the topic is related this plugin.

When they are trying to add images through the editor they can not see the proper volumes they should have access to in the popup modal.
The only option I had to fix this, was to temporarily give them admin permission on the site, which I hope I can revoke from them as soon as possible.

This is the payload of the request from an admin user
article-editor-admin

And this one is from a non-admin user
article-editor-non-admin

I'm not entirely sure what kind of permission is necessary for this to work, but I made sure all of these users have full acccess to every single volume on the site.

I don't have much experience with developing complex frontend functionalities for the Craft admin area, but I just quickly looked into the JS part of the plugin to see how these volumes are getting populated. This is what I see when I console.log out the content of the craftSettings variable in the init function of the ArticleEditor.

Admin user:
craftsettings-admin

Non admin user:
craftsettings-non-admin

Our current dependencies (copied from composer.json)

  "require": {
    "born05/craft-assetusage": "3.0.0",
    "craftcms/cms": "4.3.7.1",
    "craftcms/commerce": "4.2.5.1",
    "craftcms/commerce-stripe": "3.1.0",
    "craftcms/feed-me": "5.0.5",
    "craftcms/redactor": "3.0.3",
    "creativeorange/craft-article": "2.0.1",
    "diginov/craft-sentry-logger": "4.1.1",
    "doublesecretagency/craft-spoon": "4.0.3",
    "enshrined/svg-sanitize": "~0.15.2",
    "ether/simplemap": "4.0.3",
    "ether/tags": "2.0.0",
    "html2text/html2text": "^4.2",
    "lewisjenkins/craft-dynamic-fields": "4.0.3",
    "loilo/fuse": "^6.4",
    "luwes/craft3-codemirror": "2.0.0",
    "mmikkel/child-me": "1.3.1",
    "mmikkel/cp-field-inspect": "1.4.4",
    "mmikkel/incognito-field": "1.3.0",
    "mmikkel/retcon": "2.6.0",
    "netlab/commerce-two": "2.0.7",
    "nystudio107/craft-autocomplete": "^1.0",
    "nystudio107/craft-instantanalytics": "4.0.2",
    "nystudio107/craft-retour": "4.1.9",
    "nystudio107/craft-seomatic": "4.0.19",
    "phpseclib/phpseclib": "^2.0",
    "presseddigital/linkit": "4.0.4.1",
    "putyourlightson/craft-blitz": "4.2.3",
    "spacecatninja/imager-x": "4.1.10",
    "spacecatninja/imager-x-do-spaces-driver": "^3.0",
    "studioespresso/craft-scout": "3.0.0",
    "utakka/redactor-anchors": "1.4.0",
    "verbb/image-resizer": "3.0.4",
    "verbb/navigation": "2.0.16",
    "verbb/super-table": "3.0.7",
    "verbb/wishlist": "2.0.4",
    "vlucas/phpdotenv": "^3.4.0",
    "webonyx/graphql-php": "~14.11.5",
    "yiisoft/yii2": "^2.0.46.0",
    "yiisoft/yii2-redis": "^2.0.6"
  }

I'm not sure if this is an issue with Craft or this plugin or even with our config, but it would be highly appriciated if you could provide some help.
If you need any further detail on this or about our project please just let me know and I'll get back to you ASAP.

Plugins do not load

When I add plugins to the config, they do not load. In fact, none of the plugins other than the custom craft plugins load. Here is my definition with my config:

"plugins": [
        "craft-image",
        "craft-image-editor",
        "craft-link",
        "imageposition",
        "reorder",
        "underline",
        "removeformat",
        "selector",
        "blockcode",
        "inlineformat",
        "fontcolor",
        "imageresize"
],

I attempted to download the plugins and place them in the /web/article folder, but they still did not load. Any suggestions?

I am running v3.0.0 on Craft 4.7.1.

Thanks!

JavaScript errors in Craft CMS CP when Article Editor plugin is enabled

Description:
When the Article Editor plugin is enabled, navigating between tabs in the Control Panel (CP) becomes impossible (in some entries but not all) due to JavaScript errors. Disabling the Article Editor plugin resolves the issue, indicating a potential conflict or bug within the plugin itself.

Steps to Reproduce:

  • Ensure the Article Editor plugin is enabled.
  • Navigate to any entry editing page in the CP.
  • Ensure there is at least one instance of the Article Editor in the current entry.
  • Attempt to switch tabs within the interface.

Expected Behavior:
The CP Tab navigation should work seamlessly without any errors, allowing users to edit and manage entries as needed.

Actual Behavior:
The console logs a JavaScript error related to a TypeError: Cannot read properties of undefined (reading '$tabContainer'), preventing tab navigation. This error seems to originate from the plugin's JavaScript files.

  • disabling the Article Editor 'block' doesn't resolve the issue.
  • deleting the Article Editor 'block' from the entry resolves the issue.

Console Errors:

jQuery.Deferred exception: Cannot read properties of undefined (reading '$tabContainer') TypeError: Cannot read properties of undefined (reading '$tabContainer')

Uncaught TypeError: Cannot read properties of undefined (reading '$tabContainer')
    at s.constructor.init (ElementEditor.js:94:44)
    at s.constructor.constructor (Base.js:20:15)

Environment:
Craft CMS version: 4.8.3 (and 4.8.6)
Article Editor Plugin version: 3.1.0

Flash of unstyled content

When element page with article field loads, we briefly see textarea before JS loads and article editor initializes.

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.