Hi there
i created 3 new Buttons for me in the Editor. (Information, Error and Warning)
When i klick the Button, the expected Code is written into the Editor. For example, i push "Information" then "%%information mytext%%" is inserted.
When i save everything is how i expected and right formatted. But when I now go to the editor again. Then the Text "mytext" is unformatted (in the editor) and i don't see, that there is a formatted text. When I save again everything looks how it should and the text is right formatted.
So, i only want that the text is also right formatted in the editor.
There is no formatting lost in my Document.
How can i add this?
Hope my question is understandable
Add new formatting in Editor
Hi,
I'm not sure how your plugin works and what exactly it inserts but to get result you want you should be inserting styled HTML. Styling can be either inline or placed in content.css.
HTML: You should probably be inserting div with image floated to the left and paragraph for text.
CSS: Please note that if you decide to use contents.css then these styles are only used inside content area. The result page should have same styles attached to get desired effect.
You could check with e.g. Firebug of what sort of HTML elements this feature is built and make your plugin insert the same into editor. You could also try using the same CSS class names as JSPWiki is using. Perhaps they will work inside editor and on resulting page but my guess is that you will have to define classes in contents.css and on resulting page (or use inline styles).
Show code
Hy,
Can you show us the sequence of html or php code? To try to solve your problem.