Git Product home page Git Product logo

nova-tiptap's People

Contributors

andrerei avatar drobee avatar grevzi avatar hanspagel avatar imjusttony avatar jameshind17 avatar jornn178 avatar luckylukas98 avatar manogi avatar opjepl44tsm4n avatar ryanmitchell avatar shaffe-fr avatar stevelacey avatar timothepearce avatar tmorian avatar u12206050 avatar xenothanhojem avatar zweigmbh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nova-tiptap's Issues

Add title attributes to toolbar buttons

Not an issue but a proposal.

Is it possible to add title attributes to the buttons in the editor toolbar? So when you hover over each button a helpful hint shows. Much like the GitHub editor here:

image

Mock up using Chrome dev-tools:
image

Whilst many of us developers will recognise the editor icons, there are some clients (the ultimate the end user) who may not.

Change org name to @scrumpy

Hi Hans from Scrumpy here. I just discovered your laravel nova field, that's awesome!

We changed our org name to @scrumpy, there's an redirect set up but it could potentially be taken over. Would you mind to update the name in your README? 💓

Add field name to id attribute

Following convention of all other Nova fields there should exist an id attribute on the element with tiptap-content class containing the name of the field.

Let me know if you need help with this.

Issue with "?" symbol in editor

Whenever I am trying to write "?" symbol, the global search gets the focus, so it seems there is conflict between laravel nova global search shortcut key.

Any idea how to fix this ?

Content is saved to null without touching it

Hello! 👋

I have an issue with the editor integration on a client site that I can't figure out.

When I go to the edit form of a page (one of my resources), I update the title for example then I save, and then one or more contents in one of the layouts will be saved at null.

I'm not sure if the issue comes from this package or from my code, anyone have an idea?
Maybe mixing with layouts classes from Flexible Content is an issue?
Maybe having multiple editors on the same form is a problem?

I use PHP 8.1, Laravel 9, Laravel Nova 4 and the Flexible Content package.

Can you tell me how to test it? Clone the repo and require it into my nova-components maybe ? That way I could use logs and Vue devtool ?

Below my layout class with the editor in it:

Screenshot 2022-09-23 at 11 42 55

If this issue needs to be in the discussions let me know and I will move it. 👍

Make images prunable

Hello,

Right now, when you delete an image from the field, it still stays on the drive.

feat: text align

Hi! I was hyped using the package until I noticed that there isn't an option to centralize text, is it possible to add it?

Allow to specify headings level as range

By SEO and accessibility [and standards], it's better to have only one H1 per page. For this reason it will be nice to specify available headers as a range or a list, e.g. [3,4,5,6]. Is it possible right now? If now, can we have this feature in the package?

PS: thanks for your great package!

Wrong attributes in links

  • download="" attribute wrongly applied to all links which is force the browser to download the page instead of navigating it.
  • title="" applied to all links and can not modified by the editor which is not good for SEO.
  • rel="noopener noreferrer nofollow" applied to internal links which is not good for SEO (would be best if we can choose the rel mode).

Request: Always Show Content

Add an option to always show the complete content.
Like in TextArea Field:

Textarea::make('Intro')->alwaysShow(),

Update to Support Nova 4

Now that Nova 4 is out, it would be great if we could update this field to support it. Let me know if you would like some help on this and I may be able to dedicate some time on it. For this field I don't believe we will have too many changes to make.

RTL support

Is there any way to add rtl support as well?

Request: add source code edit mode

froala/nova-froala-field has a very useful (in some cases) mode to edit raw HTML. Is it possible to implement the same for this field/editor?

Label name not showing on details view

When using the TipTap editor, the label name is not showing on the details view.

In cases when you have more than one editor field per view, it can be a bit tricky to figure out which field is which.

details-view

Link modal is wrongly placed on tiptap v2.8.0 on Nova 3

Versions:

  • Nova: 3.32.0
  • TipTap: 2.8.8

Description

When pressing the link button the link modal is placed down in the bottom right just off the screen.

2 8 0 - modal placement and toolbars

In the previous version 2.7.6 the modal is placed in the middle as expected.

2 7 6 - toolbars

Note in both versions then having more than TipTap field seems to result in the toolbars of each field on the screen appearing when the link modal is viewed.

Can't create a link.

When I select the link button the tooltip appears, but I cant select the input to type in a url. When I click the input it highlights like a button click. The close button works fine,

When I the link button.
Capture

When I click and hold the link form.
Capture2

Attaching file

The file component upload works on this editor? How I can use it?

Thanks!

Field doesn't display help text

code

Tiptap::make('Description')->hideFromIndex()->help(__('users.nova-help.description')),
Textarea::make('Notes', 'description')->hideFromIndex()->help(__('users.nova-help.description')),

result

image

version

v1.1.3

JS error on details page

Error message with stacktrace:

vendor.js?id=952176bb1b228ba530bc:1 TypeError: Cannot read property 'replace' of null
    at a.parsedValue (tiptap:2)
    at hn.get (vendor.js?id=952176bb1b228ba530bc:1)
    at hn.evaluate (vendor.js?id=952176bb1b228ba530bc:1)
    at a.parsedValue (vendor.js?id=952176bb1b228ba530bc:1)
    at a.<anonymous> (tiptap:2)
    at a.t._render (vendor.js?id=952176bb1b228ba530bc:1)
    at a.hn.before (vendor.js?id=952176bb1b228ba530bc:1)
    at hn.get (vendor.js?id=952176bb1b228ba530bc:1)
    at new hn (vendor.js?id=952176bb1b228ba530bc:1)
    at vendor.js?id=952176bb1b228ba530bc:1

image

php I use:

            Tiptap::make('Description')
                ->hideFromIndex()
                ->help('User description visible for other users'),

[email protected]
Nova 3.10.0

Doesn't work in Safari when used in an Action.

Hey - if the tiptap field is used within an Action model then it is not selectable with a mouse or by tabbing into it.

It works fine when used on an update or creation page.

Latest nova & package version

How about a horizontal rule?

You have probably considered it already and maybe rejected the idea, but a horizontal rule button would be useful in my case.

No big deal! Thanks for the package!

tiptap extensions

Is there possible to install it?
I really need button for change text color

`<h4>, <h5>, <h6>` tags are converted to `<p>`

Description

The <h4></h4>, <h5></h5> or <h6></h6> tags are converted to a <p></p> when while editing the content.

Example

During creation, my tags are properly formatted:
Capture d’écran 2019-12-30 à 19 10 46

Wich is not the case when I'm editing the same content:
Capture d’écran 2019-12-30 à 19 11 56

Show raw HTML

Is there any possibility to see the raw HTML that is getting stored when saving? I've seen this in a few editors - you could switch between WYSIWYG and the Sourcecode.

Question (not an issue): how can your files build when you're on an old version of laravel mix?

Hi,

I'm trying to create a custom tiptap field for Nova (I can't use this package because I want to really customize it), but I can't get my code to build properly. When I try to import tiptap I get an 'unexpected token' error because of the usage of the spread operator. I finally found how to fix it, and that is upgrading Laravel-mix to 5.0, and adding a .babelrc in the root. This builds the files as expected.

However, the field is not showing. Not sure what is going on there. So my question is:

How can it work for you as the mix version in your package is 1.0? Shouldn't you be having the same issues? Or if you did, how did you fix it or what am I missing? I've spend almost 2 days now trying to get it to work and could use some help :-(

// .babelrc
{
    "plugins": ["@babel/plugin-proposal-object-rest-spread"]
}

Multiple Headimgs?

Hi there,
Im not aure if its a Bug or this is on purpose but its not possible tlo set multiple headings of the same kind in one fiel.

So after setting for eg. the first h3 the and mark another line line the h3 Button is not working anymore?

class Manogi\Tiptap not found

When following the documentation and adding Tiptap::make('something'), I am presented with the following exception "class Manogi\Tiptap not found"

I declared the following dependency in the class:

use Manogi\Tiptap;

I also tried "use TipTap" and "Laravel\Nova\Fields\TipTap".

Any idea what could be the issue?

editHtml is not working properly

Hi,

When i activated the edit html option and add some html (<iframe> or <div>) and change to normal mode, the html is removed.
If i insert something like <p> or <h6> works nice.

I'm using v2.7.3 and laravel nova v3.20.0.

Field saving empty HTML tags on removal

Hi Magoni,

First of all, thank you so much for this amazing package!

One small thing, I noticed that when deleting all the text inside the field editor, empty HTML tags are still saved on the database.

Things like <p></p> or <strong></strong>.

The problem is, when doing <?php if (empty($field)) echo 'something'; ?> is always going to give positive, because $field is never really "empty".

Link button not working in a modal

Laravel version: 8.83.0
Nova Version: 3.32
TipTap Version: 2.8.3

I'm facing an issue with link button that stopped working using the editor inside a laravel nova action modal.
When I click the button nothing is happening and the modal of Laravel nova action just reopen.

Registrazione.schermo.2023-01-20.alle.11.50.02.mov

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.