-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML editor breaks XHTML content while auto-converting to HTML #31
Comments
What we have in tagspaces is not a pure xhtml editor. If you need a xhtml editor you can switch to editorText for xhtml files in the options, which is not wysiwyg but a pure source code editor, based on codemirror. |
I am? As I said in the description, ideally it should support WYSIWYG for XHTML as well. In case that's not feasible the HTML editor should at least do the conversion right, given that it's currently set as the default editor for XHTML. FYI, in the example above I just opened and saved the XHTML file - no editing whatsoever... So, this issue is partially meant as a bug report but also partially as an enhancement request. Cheers |
Please ignore "You are" it was for another topic ... BTW, thank you for your interest in TagSpaces ! |
Sure, np. I really like it so far! It will hopefully replace Evernote eventually (can't wait for WebDAV over HTTPS support!). |
For the html editor I am using https://github.com/HackerWins/summernote , which has a sleek UI and works nice in some basic usecase, but is also a little unstable ... In particular it has some issue with the way node-webkit saves files ... And it was for sure not build as a xhtml editor ... |
What is your usecase for the webdav support, If you need files to be synced between devices, you can still use dropbox, owncloud or bittorrentsync, which are all working nice with tagspaces ... ? |
I'm already using an external WebDAV sync client (Dropbox and bittorrentsync don't use WebDAV). It would just be ideal to have WebDAV directly integrated to get rid of that external dependency. If you need to rely on such an external tool, you need to find one that supports all the OS that TagSpaces nowadays supports. WebDAV is the common denominator (standard) in terms of cloud data synchronisation that's supported by most private hosting companies and not tied to a particular service provider like Dropbox - a very important selling point for people concerned about privacy. FYI, we might get off topic here. Shall we move this to a dedicated issue? |
the implementation of the html editor in 1.7.5, works only with the body tag of the html/xhtml document. So now you should be able to have a proper xhtml output. The only question if everything produced in summernote is xml/xhtml conform... |
Ok, the good news is: editing XHTML content as HTML (using .html as file suffix/type) now works in principle as the content itself is retained. However, the editor converts singular XHTML tags like Bottom line:
I'll file an enhancement request with the summernote project and let them know about the XHTML incompatibility. |
Speaking of upstream issues: the HTML/XHTML editor doesn't add any line breaks, say, after |
The requested features should be reported to summernote... |
XHTML is listed among the seemingly supported file types and is set to be editable by the HTML editor by default. However, as soon as I open a standard XHTML file in 1.7.4 on OS X it get's auto-converted to HTML. In fact, the editor comments out the XML declaration, strips the
DOCTYPE
declaration and it even strips theHTML
,HEAD
andBODY
tags, leaving behind a rather incomplete HTML fragment. Is that intentional?Example: the following...
... gets transformed into (empty lines are in the original output!):
Upon saving the HTML viewer returns the following error:
Ideally, the HTML editor shouldn't convert XHTML to HTML at all. If that isn't possible it should at least return something that can still be digested by the HTML viewer ;-)
Thanks
The text was updated successfully, but these errors were encountered: