Comments (6)
Hi there, could you please paste your Resource Class, or just the Tiptap fields inside that class? I'm not sure which button you mean. There is no "paragraph" button. Just pressing enter inside Tiptap adds a new paragraph, no button is needed. All other block elements can be turned back into a paragraph by by toggling the button again (like H1, H2, Unordered List etc.).
from nova-tiptap.
Hmm. I'm not sure I would like the Paragraph button to be a "first class citizen", because people might think they actually need to use it. But I might consider adding the button, but not adding it to the Readme. I will think about it.
from nova-tiptap.
I decided to add the button (is added in version v2.7.2), but I don't mention it in the Readme. Using feels a little strange to me, as there is no way to "untoggle" a paragraph, as the paragraph is the default block node. I hope it fits your use case!
from nova-tiptap.
Hi @manogi ,
I often use the "paragraph" button to reset text pasted from elsewhere, maybe that is just me?
Tiptap::make('Content', 'content')
->buttons([
'heading',
'paragraph',
'|',
'italic',
'bold',
'|',
'link',
'strike',
'underline',
'highlight',
'|',
'bulletList',
'orderedList',
'|',
'table',
])
->headingLevels([1, 2, 3, 4])
->onlyOnForms(),
Maybe the following would work:
File: NormalButton.vue:
Line 58:
else if (this.button == 'paragraph') {
return ['fas', 'paragraph'];
}
Line 109:
else if (this.button == 'paragraph') {
command.setParagraph();
}
Ref: https://tiptap.dev/api/nodes/paragraph
from nova-tiptap.
Sure thing, let me know what you decide :) Thanks!
from nova-tiptap.
Thank you @manogi!
from nova-tiptap.
Related Issues (20)
- Allow customisation of image inline setting HOT 9
- Update to Support Nova 4 HOT 12
- Link modal is wrongly placed on tiptap v2.8.0 on Nova 3 HOT 6
- Multiple Headimgs? HOT 3
- Is it required for installed a Laravel Nova ? HOT 1
- tiptap extensions HOT 1
- Text content shows through link modal HOT 4
- Support for dependsOn HOT 2
- Make images prunable HOT 2
- Content is saved to null without touching it HOT 2
- Link button not working in a modal
- Add support for new YouTube node?
- JS error on console HOT 1
- Attaching file HOT 1
- Can I change nbsp; to space? HOT 1
- Support for fontsize HOT 1
- Vue is not defined
- Dark theme HOT 5
- Edit content with modal fullscreen
- Stopped working since v3.1 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nova-tiptap.