[Question] How to add "Ordered/Unordered List" option in rte/custom block #3660
Replies: 8 comments
-
Can you create a reproducible demo, please? That error without a stack trace is useless
You should definitely do it by yourself or rely on something like CKEditor for more advanced text usage |
Beta Was this translation helpful? Give feedback.
-
Hey! Thanks for responding so quickly.
Here is a zip file containing a stripped down version of my editor page. It includes a bunch of css and js files. The rte functions listed above are in editor_rte.js. Steps to reproduce:
Ah, alright. Thank you. Edit: I use Firefox 68.0.1 |
Beta Was this translation helpful? Give feedback.
-
Sorry, but as already mentioned in the issue template you have to publish your demo online
|
Beta Was this translation helpful? Give feedback.
-
Oh! Sorry. Here's the online version: |
Beta Was this translation helpful? Give feedback.
-
Seems to be an issue only in Firefox (probably a bug). Don't really know why is happening, I'll dig dipper later |
Beta Was this translation helpful? Give feedback.
-
From the above comments, I can now add ordered and unordered list. Is there any way to update existing ordered and unordered List ? |
Beta Was this translation helpful? Give feedback.
-
@artf - I am running into this same issue also. It happens with exec('indent'), exec('outdent'), exec('insertunorderedlist'), and exec('insertorderedlist') -- all work fine in Chrome and Brave, but fail in FireFox and Safari in the same manner as mentioned above. NOTE: I have tried with all lowercase and caps as specified like "insertUnorderedList" with the same result. |
Beta Was this translation helpful? Give feedback.
-
This seems to be a problem with de P tag. With the default text inside the div, works fine in firefox. |
Beta Was this translation helpful? Give feedback.
-
Hi
I'm trying to create an ordered list with grapesjs. I tried adding the following to the rte:
And this works if my page is pre-filled with html when the editor is initialized, like below:
Prefilled Editor:
Create Ordered List:
If, however, I drop a new block into the canvas, and then press the ordered list button, I get a NS_ERROR_ILLEGAL_VALUE message, like below:
Create new Paragraph Block:
Create Ordered List:
How can I fix this so that:
(Side Note: My example shows me doing this through the rte toolbar, but I am open to making lists into a new block type, if that helps and someone can tell me how to make them work.)
Beta Was this translation helpful? Give feedback.
All reactions